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)

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

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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.

 

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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-10-27 bens StatusNone => Fixed

    Back to the top


    Powered by Savane 3.7