GNU nano - Bugs: bug #42188, soft-wrapping does not always show...
You are not allowed to post comments on this tracker with your current authentication level.
bug #42188: soft-wrapping does not always show all that it could
Submitter: | Benno Schulenberg <bens> | ||
Submitted: | Thu 24 Apr 2014 07:23:26 PM UTC | ||
Severity: | 3 - Normal | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Sat 09 Jan 2016 08:21:48 PM UTC, comment #5: |
Benno Schulenberg <bens> |
Wed 11 Jun 2014 05:41:16 PM UTC, comment #4: Okay. Looking into this more, I've noticed that uncolored portions of lines sometimes have the last character replaced with a space. If I follow your instructions, but hit M-= four times instead of once, the last line on the screen ends with
|
David Lawrence Ramsey <dolorous> |
Wed 11 Jun 2014 07:14:52 AM UTC, comment #3: Toggling nohelp and/or morespace on or off does not make the bug go away -- one just has to find another line with a coloured item that, when it lands on the final screen line, triggers the bug.
|
Benno Schulenberg <bens> |
Wed 11 Jun 2014 01:53:47 AM UTC, comment #2: I just tried this in SVN r4955. After following all the instructions to reproduce the bug, I've noticed that expert mode (the -x/--nohelp option) affects it. Specifically, the bug doesn't occur if expert mode is on, but does if expert mode is off; toggling expert mode on and off via Meta-X makes the missing rest of the line appear and disappear. (For the record, I use --morespace and --nohelp by default.) |
David Lawrence Ramsey <dolorous> |
Thu 24 Apr 2014 07:29:05 PM UTC, comment #1: It has to do with syntax colouring. When switching colouring off, the bottom line is show properly, using its full available length.
|
Benno Schulenberg <bens> |
Thu 24 Apr 2014 07:23:26 PM UTC, original submission:
To reproduce: Set your terminal to 30 lines and 120 columns. Open doc/faq.html, enable soft-wrapping, then search for the word "bizarre" (without the quotes). Now strike six times M-= (scroll without moving cursor). The word "bizarre" is now on the top line of the screen. On the bottom line the text seems to end shortly after the middle with "Pico mode" -- but that is in fact not the end of that line in the file: nano is making a mistake there. Do another M-= to see the missing ", nano is and has always been...". |
Benno Schulenberg <bens> |
No files currently attached
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 |
---|---|---|---|---|---|
2016-01-14 | bens | Open/Closed | Open | Closed | |
2016-01-09 | bens | Status | None | Fixed | |
Assigned to | None | bens | |||
Summary | Soft-wrapping does not always show all that it could | soft-wrapping does not always show all that it could |
Powered by Savane 3.13-f8d8.
Corresponding source code
When the softwrapped part of a line is painted onto the screen, the zero-based line number gets incremented at the /start/ of the for loop, meaning that the test in the 'for' statement should test for one line /less/.
(Why the painting of this extra line has the effect it has, I don't know -- it goes outside the edit window; ncurses should completely ignore it, or beep furiuously, or whatever, but not mess up the preceding line.)
Fixed in SVN, r5539.