GNU nano - Bugs: bug #61162, undoing a cut operation does not...
You are not allowed to post comments on this tracker with your current authentication level.
bug #61162: undoing a cut operation does not put anchors back where they were
Submitter: | Benno Schulenberg <bens> | ||
Submitted: | Wed 15 Sep 2021 09:10:51 AM UTC | ||
Severity: | 2 - Minor | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Jump to the original submission
Thu 07 Oct 2021 07:32:48 AM UTC, comment #7: |
Benno Schulenberg <bens> |
Mon 20 Sep 2021 09:03:55 AM UTC, comment #6: Fixed in git, commit 189960c4, by copying any anchor into the cutbuffer so that it gets saved in the undo item, and wiping an inherited anchor when undoing a cut operation. |
Benno Schulenberg <bens> |
Fri 17 Sep 2021 08:15:28 AM UTC, comment #5: Improved patch is attached. |
Benno Schulenberg <bens> |
Thu 16 Sep 2021 09:56:34 AM UTC, comment #4: (Morphing this issue into a more general bug report.)
Place an anchor at the current line ("tar -xvf...") with <Alt+Insert>.
|
Benno Schulenberg <bens> |
Wed 15 Sep 2021 03:07:39 PM UTC, comment #3: Distinguishing between a placed anchor and an inherited anchor does not help either, because when such an inherited anchor is later among the lines of another cutting operation, then the anchor will not be copied into the cutbuffer, and thus not into the undo item, and would thus be absent when that cut is undone. Not good.
|
Benno Schulenberg <bens> |
Wed 15 Sep 2021 10:51:21 AM UTC, comment #2: The mechanism proposed in the previous comment cannot work. It will work when cutting a region, but will break down when cutting a bunch of lines line-by-line: when one of those lines has an anchor, this anchor, when the line is cut, will be inherited by the next line, and when that line is cut, will be inherited by the subsequent line... meaning that every line after the line that was actually anchored will have an anchor in the cutbuffer. :|
|
Benno Schulenberg <bens> |
Wed 15 Sep 2021 09:25:34 AM UTC, comment #1: Doing an external spell check, or "formatting" the buffer (with M-F, on a HTML file, for example), or passing the entire buffer through an external command (sed s/a/AAA/, for example), will lose any anchors that were present in the buffer. (Spell checking a region, or passing a region through an external command, will move any anchor that was present in the region to the start of the region, though.)
|
Benno Schulenberg <bens> |
Wed 15 Sep 2021 09:10:51 AM UTC, original submission:
To reproduce, run 'src/nano +44 README',
|
Benno Schulenberg <bens> |
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 8 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2021-10-07 | bens | Open/Closed | Open | Closed | |
2021-09-27 | bens | Summary | undoing a cut operation does not put anchors back where they werre | undoing a cut operation does not put anchors back where they were | |
2021-09-20 | bens | Status | In Progress | Fixed | |
2021-09-17 | bens | Attached File | - | Added 0001-cutting-copy-anchors-into-the-cutbuffer-so-that-undo.patch, #51933 | |
2021-09-16 | bens | Status | None | In Progress | |
Summary | undoing a full justification moves any anchor to the top | undoing a cut operation does not put anchors back where they werre | |||
2021-09-15 | bens | Assigned to | None | bens | |
2021-09-15 | bens | Attached File | - | Added 0001-cutting-copy-anchors-into-the-cutbuffer-so-that-undo.patch, #51922 |
Powered by Savane 3.13-02a9.
Corresponding source code
Released in nano-5.9.