bugGNU nano - Bugs: bug #58088, with --nonewlines, M-6 will copy...

 
 

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

bug #58088: with --nonewlines, M-6 will copy the last line multiple times

Submitter:  Benno Schulenberg <bens>
Submitted:  Tue 31 Mar 2020 03:29:09 PM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Tue 31 Mar 2020 04:02:17 PM UTC, comment #1: 

Fixed in git, commit 96046f1e.

Benno Schulenberg <bens>
Group administrator
Tue 31 Mar 2020 03:29:09 PM UTC, original submission:  

To reproduce, run nano-4.9 or earlier.  Run:

src/nano --ignore --soft --line --nonew  +-1 README

Then type: <Backspace> M-6 M-6 ^U
See that the ^U pastes the content of the last line twice.

When typing M-6 five times, the cutbuffer will contain five concatenated copies of the last line.  This has been so since at least 2.1.10, but it is wrong.  When not using --nonew and typing M-6 on the last line, nothing is entered in the cutbuffer.

To demonstrate, run the command without --nonew, then type:
<Backspace> <Up> <Up> M-6 M-6 M-6 M-6 M-6 M-6 ^U
The ^U just pastes the copied three lines, not any extra blank lines.  When using --nonewlines, the behavior should be similar: the supernumerary M-6s should not duplicate any text lines into the cutbuffer.

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

    Date Changed by Updated Field Previous Value => Replaced by
    2020-07-30 bens Open/ClosedOpen Closed
    2020-03-31 bens StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code