bugGNU nano - Bugs: bug #52519, nano does not update stat data...

 
 

bug #52519: nano does not update stat data when using ^S when mark is on

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sun 26 Nov 2017 07:11:22 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.

 

Mon 27 Nov 2017 03:48:47 PM UTC, comment #2:

Well... bug #52482 was in fact two bugs: 1) overwriting the file with just a part of it, and 2) not updating the stat info. The first one seemed to cause the second, but... that is not the case.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 26 Nov 2017 08:04:58 PM UTC, comment #1:

Fixed in git, commit 20aa167c.

And closing, because unreleased.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 26 Nov 2017 07:11:22 PM UTC, original submission:

To reproduce, run:

src/nano +1 NEWS

Then type: <Shift>+<Down> <Shift>+<Down> ^S.

Then type ^S again. Result:

[ File on disk has changed ]

File was modified since you opened it; continue saving?

This is incorrect, of course. It forgot to update the stat info, simply because the mark is on and thus it thinks that it wrote just the selected region.

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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 28 Nov 2017 08:13:08 PM UTCbensOpen/ClosedOpen=>Closed
    Mon 27 Nov 2017 03:48:47 PM UTCbensOpen/ClosedClosed=>Open
    Sun 26 Nov 2017 08:04:58 PM UTCbensStatusNone=>Fixed
      Assigned toNone=>bens
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1