patchGNU nano - Patches: patch #8890, don't record a cursor position of...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #8890: don't record a cursor position of 1 1 in the history list

Submitter:  Benno Schulenberg <bens>
Submitted:  Tue 26 Jan 2016 04:38:23 PM UTC
   
 
Priority:  3 - Low Status:  Done
Privacy:  Public Assigned to:  bens
Open/Closed:  Closed Release:  None

Sun 07 Feb 2016 12:53:56 PM UTC, comment #1: 

Patch went into SVN, r5615.

The reason: after opening in one sweep the seven hundred C files in gnulib/lib, I've lost all the positions in the files that I normally edit.  So, when just opening a bunch of files to have a look at them without moving the cursor, these files should not be recorded in the file-position history.  Since the size of that history is limited now, don't put things there that don't /need/ to be there.

Benno Schulenberg <bens>
Group administrator
Tue 26 Jan 2016 04:38:23 PM UTC, original submission:  

Quite often one uses nano just to have a short look at a file and one doesn't even move the cursor.  Although it might be nice to have a trail of all the files recently opened, it is a waste to record a position of 1 1 in the file-position-history file, as that is the default position and the cursor would be placed there anyhow also without this record.

So attached patch skips making a record for any 1 1 position, and deletes an existing record if the current position is 1 1.

Benno Schulenberg <bens>
Group administrator

 

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

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-02-15 bens Open/ClosedOpen Closed
    2016-02-07 bens StatusNone Done
        Assigned toNone bens
    2016-01-26 bens Attached File- Added dont-record-default-position.patch, #36169

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code