GNU nano - Bugs: bug #27265, nano crashes when the terminal is...
You are not allowed to post comments on this tracker with your current authentication level.
bug #27265: nano crashes when the terminal is too narrow
Submitter: | Brian Bi <bbi5291> | ||
Submitted: | Sun 16 Aug 2009 11:27:15 PM UTC | ||
Severity: | 3 - Normal | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Wed 09 Apr 2014 05:57:58 PM UTC, comment #2: |
Benno Schulenberg <bens> |
Tue 19 Jan 2010 10:15:34 PM UTC, comment #1: Diff attached base on current trunk (2.2.2-svn), that contains a fix.
|
Nigel Derbyshire <nad6234> |
Sun 16 Aug 2009 11:27:15 PM UTC, original submission:
At winio.c:2424 in release 2.0.9 and winio.c:2390 in the new 2.1.0 release is the line:
|
Brian Bi <bbi5291> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2014-04-09 | bens | Status | None | Fixed | |
Assigned to | None | bens | |||
Open/Closed | Open | Closed | |||
2010-01-19 | nad6234 | Attached File | - | Added winio.c27265.diff, #19518 |
Powered by Savane 3.13-caa5.
Corresponding source code
In current SVN, the number of help items gets smaller as the window gets narrower, so the (COLS / something) would become zero (and cause a division by zero later on) only when the window gets narrower than four columns. But when that happens, nano dies in a controlled way (in nano.c: die(_("Window size is too small for nano...\n"));) and saves all open buffers in *.save files. So I consider this fixed. If you still find a crash, please reopen.