bugGNU nano - Bugs: bug #61353, [Wish] pasting a few words should...

 
 

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

bug #61353: [Wish] pasting a few words should trigger wrapping (when enabled)

Submitter:  Benno Schulenberg <bens>
Submitted:  Tue 19 Oct 2021 08:58:33 AM UTC
   
 
Severity:  1 - Wish Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Thu 16 Dec 2021 10:01:17 AM UTC, comment #2: 

Released in nano-6.0.

Benno Schulenberg <bens>
Group administrator
Wed 27 Oct 2021 03:14:17 PM UTC, comment #1: 

Fixed in git, commit 50106266, by checking (after the paste) whether the current line is still the one that it was before the paste, and if so, then call wrap() on the line when --breaklonglines is active.

(A small issue is when redoing such a paste (after undoing it first), the status bar will say "Redid addition" instead of "Redid paste"...  I can't be bothered with fixing that for now.)

Benno Schulenberg <bens>
Group administrator
Tue 19 Oct 2021 08:58:33 AM UTC, original submission:  

To see what I mean, run:

src/nano --auto --break --fill=68 --ignore +6,15 README

Then type: extra words
See how first "terminal" and then "the" is pushed to a new line, keeping the text width within 68 columns.

Now type: <Ctrl+Shift+Left> <Ctrl+Shift+Left> M-6 ^U ^U ^U
See how the current line just gets longer and longer without getting wrapped.

Wished behavior: when pasting just a few words (that is: anything that does not contain a newline), then hard-wrapping should occur (when --break is effect), just like when the words were typed manually or were produced by a string bind (for example: 'bind F12 "extra words" main').

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
    2021-12-16 bens Open/ClosedOpen Closed
    2021-10-27 bens StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code