bugGNU nano - Bugs: bug #58074, undoing a cut places the cursor as...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #58074: undoing a cut places the cursor as if doing a paste

Submitter:  Benno Schulenberg <bens>
Submitted:  Sun 29 Mar 2020 11:30:18 AM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Tue 31 Mar 2020 12:11:24 PM UTC, comment #4: 

Released in 4.9.1.

Benno Schulenberg <bens>
Group administrator
Sun 29 Mar 2020 12:26:41 PM UTC, comment #3: 

Fixed in git, commit 619962ee.

Benno Schulenberg <bens>
Group administrator
Sun 29 Mar 2020 12:22:37 PM UTC, comment #2: 

The offending commit is ac612545: "invert the logic of a symbol, to make more sense".

Benno Schulenberg <bens>
Group administrator
Sun 29 Mar 2020 11:51:05 AM UTC, comment #1: 

The misplacement of the cursor happens for any cut (other than a marked cut -- there it works correctly).

To demonstrate, run 'src/nano --ignore +2,23 README'.
Type ^K ^K ^K M-U.  See that the cursor doesn't hop back to where it was when the first ^K was typed, but sits at the end of the lines were cut as if they were pasted back.

Benno Schulenberg <bens>
Group administrator
Sun 29 Mar 2020 11:30:18 AM UTC, original submission:  

To reproduce, run 'src/nano --cut --ignore +2,23 README'.
Then type: ^K M-U.

See that the cursor gets placed at the end of the line (as if the text was pasted back with ^U), instead of staying where it was.

Bug exists since version 4.9.

Benno Schulenberg <bens>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Submitted the item)
  •  

    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-31 bens Open/ClosedOpen Closed
    2020-03-29 bens StatusIn Progress Fixed
    2020-03-29 bens StatusNone In Progress
    2020-03-29 bens Summarywith --cutfromcursor, undoing a cut places the cursor wrongly undoing a cut places the cursor as if doing a paste

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code