bugGNU nano - Bugs: bug #46347, when pasting text, a backward mark...

 
 

bug #46347: when pasting text, a backward mark is not adjusted correctly

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sat 31 Oct 2015 12:32:34 PM UTC  
 
Severity: 3 - NormalStatus: Fixed
Assigned to: Benno Schulenberg <bens>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 31 Oct 2015 08:40:35 PM UTC, comment #1:

Fixed in SVN, r5384. It fixes both the described case, and the case where the pasted text does not contain a newline.

After r5385, things can still be further rearranged, to simplify the logic, but that is for some other day.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sat 31 Oct 2015 12:32:34 PM UTC, original submission:

When the mark is on, and the mark is set behind the cursor (either on the same line, or somewhere on a later line), then pasting text does not properly adjust the position of the mark. The exact same piece of text should stay marked, but it changes in weird ways.

To reproduce, run 'nn +6,27 README' and then type:
M-A <Down> <Right> <Right> <Right> M-6

A little more than one line of text has been copied to the cutbuffer. Now type:
M-A <Ctrl+Right> <Ctrl+Right> ^U

Now both "and friendly " and the pasted text are marked, as expected -- with a forward mark, it works fine. Okay, so undo it and try it with a backward mark:

M-U M-A <Ctrl+Left> <Ctrl+Left> ^U

Oh! Instead of "and friendly " now "lly easy-to-use " is marked. Wrong.

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

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bens (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 07 Dec 2015 03:17:22 PM UTCbensOpen/ClosedOpen=>Closed
    Sat 31 Oct 2015 08:40:35 PM UTCbensStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1