bugGNU nano - Bugs: bug #57631, nano pastes *before* the mark when...

 
 

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

bug #57631: nano pastes *before* the mark when the mark sits at the cursor

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sun 19 Jan 2020 10:03:40 AM UTC  
 
Severity:  4 - Important Status:  Fixed
Assigned to:  Benno Schulenberg <bens> Open/Closed:  Closed

Sun 09 Feb 2020 10:28:31 AM UTC, comment #3: 

The fix has been released in version 4.8.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 20 Jan 2020 12:53:43 PM UTC, comment #2: 

Fixed in git, commit e01651cd.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 19 Jan 2020 07:17:39 PM UTC, comment #1: 

Attached is a patch that fixes the issue.

(The offending commit probably was 64b8f423: https://git.savannah.gnu.org/cgit/nano.git/commit/?id=64b8f423.)

(file #48252)

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 19 Jan 2020 10:03:40 AM UTC, original submission:  

To reproduce, run:

  src/nano --ignore  +2 README

Then type: M-6  <Down> <Down> ^6 ^U.  See that the pasted text is not highlighted, even though we set the mark before we pasted.  Now press <Up>, and see that the pasted text now does get highlighted.  Apparently the mark is located after the paste.  This is wrong.

Now do the equivalent with Pico:

  pico +2 README

And type: ^K ^U <Down> <Down> ^6 ^U.  See that the pasted text is highlighted.  This is how it should work.

Bug exists since version 2.0.7.  Version 2.0.6 still did the right thing.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.

 

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.

     

     

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-09 bens Open/ClosedOpen => Closed
    2020-01-20 bens StatusIn Progress => Fixed
    2020-01-19 bens Attached File- => Added 0001-pasting-keep-the-position-of-the-mark-when-it-coinci.patch, #48252
    2020-01-19 bens Attached File#48251 => Removed
    2020-01-19 bens Attached File- => Added 0001-pasting-keep-the-position-of-the-mark-when-it-coinci.patch, #48251
    2020-01-19 bens StatusNone => In Progress
    2020-01-19 bens Assigned toNone => bens

    Back to the top


    Powered by Savane 3.7