bugGNU nano - Bugs: bug #56251, a ^K after an M-6 does not clear...

 
 

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

bug #56251: a ^K after an M-6 does not clear the cutbuffer first

Submitter:  Benno Schulenberg <bens>
Submitted:  Wed 01 May 2019 10:49:24 AM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Thu 02 May 2019 07:51:17 AM UTC, comment #3: 

Fixed in git, commit fd3b3bc1.

Benno Schulenberg <bens>
Group administrator
Thu 02 May 2019 07:21:02 AM UTC, comment #2: 

Another manifestation can be seen when running:

  src/nano --ignore README

Then type: M-6 ^K ^U ^U ^U...

Each ^U pastes two lines instead of just one (the one that was deleted with ^K).  The other way around (^K M-6) works fine: a ^U pastes just one line.

Benno Schulenberg <bens>
Group administrator
Wed 01 May 2019 05:27:51 PM UTC, comment #1: 

The offending commit is 71f85937, "cut: concentrate the logic for clearing the cutbuffer mostly in one place".

Benno Schulenberg <bens>
Group administrator
Wed 01 May 2019 10:49:24 AM UTC, original submission:  

To reproduce, run 'src/nano --ignore --nonew'.
Then type: xx M-6 M-6 M-6 ^K M-U

See how instead of putting back the "xx" that were cut by the ^K, the M-U puts back "xxxxxxxx".

Bug exists since version 3.0.

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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-06-19 bens Open/ClosedOpen Closed
    2019-05-02 bens SummaryM-6 followed by ^K is not properly undone when --nonewlines is used a ^K after an M-6 does not clear the cutbuffer first
    2019-05-02 bens StatusIn Progress Fixed
    2019-05-02 bens StatusNone In Progress
    2019-05-01 bens Assigned toNone bens

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code