bugGNU nano - Bugs: bug #49877, position history does not work for...

 
 

bug #49877: position history does not work for filenames with embedded newlines

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sun 18 Dec 2016 11:03:46 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.

 

Sun 18 Dec 2016 11:35:56 AM UTC, comment #1:

Fixed in git, 06d9ee89.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 18 Dec 2016 11:03:46 AM UTC, original submission:

To reproduce, run 'nano --ignore --positionlog strangename' where strangename is filename with an embedded newline. Move the cursor to the end of the file with M-/ and exit from nano. Reopen the file with the very same command. See how the cursor is again at the start of the file instead of at the end.

Look at the output of 'tail ~/.nano/filepos_history'. It shows the strangename spread over two lines, which means that they will be read back in as two different names.

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
    Fri 30 Dec 2016 10:28:51 AM UTCbensOpen/ClosedOpen=>Closed
    Sun 18 Dec 2016 11:35:56 AM UTCbensStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1