bugGNU nano - Bugs: bug #49962, the buffer is tagged as modified...

 
 

bug #49962: the buffer is tagged as modified when a zero-sized region is deleted

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sat 31 Dec 2016 11:12:05 AM 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 Dec 2016 03:45:18 PM UTC, comment #1:

Fixed in git, 1c46551c.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sat 31 Dec 2016 11:12:05 AM UTC, original submission:

To reproduce, run 'nano README' and type: M-A ^K. The buffer is marked as Modified even though nothing changed.

This may seem like a very minor issue, but it also happens when trying to delete a word backwards while at the start of the file, or trying to delete a word forward while at the EOF. For example, add "bind ^D cutwordleft main" to yor nanorc, run 'nano +1 README', type ^D, and it says "Modified" even though nothing changed.

Expected behavior: when nothing is actually deleted by a ^K or other cut command, the Modified status should not change.

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
    Wed 11 Jan 2017 10:52:36 AM UTCbensOpen/ClosedOpen=>Closed
    Sat 31 Dec 2016 03:45:18 PM UTCbensStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1