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

 
 

bug #49879: position history does not work for filenames with spaces

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sun 18 Dec 2016 03:10:25 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 19 Dec 2016 10:57:27 AM UTC, comment #1:

Fixed in git, ecd18c16.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 18 Dec 2016 03:10:25 PM UTC, original submission:

To reproduce, run: echo stuff >"name with spaces". Then open that file with 'nano --ignore --position'. Type a few characters, and leave the cursor at the end of the line. Now exit from nano, and open the file again with the same command. The cursor is back at the top of the file at the start of the line.

The spaces put in the parsing of the poshist file on the wrong footing. One should have chosen to put line number and column number first, and then the file name -- numbers cannot contain spaces or other strange characters.

Expected behavior: also for filenames with spaces, the cursor position is properly restored.

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

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 30 Dec 2016 10:30:39 AM UTCbensOpen/ClosedOpen=>Closed
    Mon 19 Dec 2016 10:57:27 AM UTCbensStatusIn Progress=>Fixed
    Sun 18 Dec 2016 07:02:28 PM UTCbensStatusNone=>In Progress
      Assigned toNone=>bens

    Back to the top


    Powered by Savane 3.1-cleanup1