GNU nano - Bugs: bug #65604, "Span has underflowed"...
You are not allowed to post comments on this tracker with your current authentication level.
bug #65604: "Span has underflowed" error when using --breaklonglines and --softwrap
Submitter: | correctmost <correctmost> | ||
Submitted: | Wed 17 Apr 2024 01:22:42 AM UTC | ||
Severity: | 3 - Normal | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Open |
Wed 17 Apr 2024 03:32:11 PM UTC, comment #2: |
Benno Schulenberg <bens> |
Wed 17 Apr 2024 10:07:21 AM UTC, comment #1: Thanks for finding this! And reporting it.
|
Benno Schulenberg <bens> |
Wed 17 Apr 2024 01:22:42 AM UTC, original submission:
File set-up for 'underflow.txt':
|
correctmost <correctmost> |
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 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2024-04-17 | bens | Status | None | Fixed | |
2024-04-17 | bens | Assigned to | None | bens |
Powered by Savane 3.13-02a9.
Corresponding source code
Fixed in git, commit 7b07e1ee, by advancing 'edittop' when that line gets hard-wrapped while part of it is scrolled off the top of the screen.
The solution is not ideal, as it pushes 'edittop' just one chunk further also when several chunks were scrolled offscreen. But... it's better than what it was, and certainly better what version 2.8.5 and earlier did (messing up the display and complaining about badness).
The solution could be made perfect by computing the offscreen chunks before the do_enter():
and then going forward that many chunks after the do_enter(). But... such a seldom occurrence is not worth the code. Also: it's kind of nice that one gets to see the whole newly created line: it shows better what has happened.