GNU nano - Bugs: bug #57808, undoing a paste or insert on the...
You are not allowed to post comments on this tracker with your current authentication level.
bug #57808: undoing a paste or insert on the bottom line does not remove the extra newline
Submitter: | Benno Schulenberg <bens> | ||
Submitted: | Thu 13 Feb 2020 06:28:49 PM UTC | ||
Severity: | 3 - Normal | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Fri 14 Feb 2020 02:54:13 PM UTC, comment #3: |
Benno Schulenberg <bens> |
Fri 14 Feb 2020 10:23:05 AM UTC, comment #2: Inserting a file that does not end in a newline has the same problem: the insertion at the bottom of the buffer adds a magic line, but the undo does not remove it.
|
Benno Schulenberg <bens> |
Thu 13 Feb 2020 06:39:30 PM UTC, comment #1: The bug exists in this form since at least version 2.5.0. From version 2.3.3 to 2.4.3 the extra line is not removed either, but at least the character count is correct: it has increased by 1 to 2990.
|
Benno Schulenberg <bens> |
Thu 13 Feb 2020 06:28:49 PM UTC, original submission:
To reproduce, run:
|
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 |
---|---|---|---|---|---|
2020-03-25 | bens | Open/Closed | Open | Closed | |
2020-02-14 | bens | Status | None | Fixed | |
2020-02-14 | bens | Assigned to | None | bens | |
Summary | undoing a paste on the bottom line does not remove the extra newline | undoing a paste or insert on the bottom line does not remove the extra newline |
Powered by Savane 3.13-4448.
Corresponding source code
Fixed in git, commit a0506a15.
(When redoing a paste -- through undo_cut() -- there must be an extra check to prevent removing an actually needed magic line.)