bugGNU nano - Bugs: bug #38600, poslog reset when opening files...


bug #38600: poslog reset when opening files via "insert" key binding

Submitted by:  Craig Barnes <craigbarnes>
Submitted on:  Tue 26 Mar 2013 10:43:44 PM UTC  
Severity: 3 - NormalStatus: Fixed
Assigned to: Chris Allegretta <astyanax>Open/Closed: Closed

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 12 Apr 2013 01:07:30 PM UTC, comment #3:

Sorry, scratch that last comment. I had the poslog disabled. SVN version is working fine. Thanks for the help.

Craig Barnes <craigbarnes>
Fri 12 Apr 2013 01:00:48 PM UTC, comment #2:

Hi Chris, thanks for the reply.

I've just checked again with SVN trunk and the problem still seems to occur for me.

$ src/nano -V
GNU nano version 2.3.2-svn (compiled 13:49:30, Apr 12 2013)
Compiled options: --enable-color --enable-extra --enable-multibuffer --enable-nanorc --enable-utf8

Is there anything else I can do to help debug?

Craig Barnes <craigbarnes>
Fri 12 Apr 2013 06:48:26 AM UTC, comment #1:


Thank you for the report! I believe this should be fixed in
current trunk, and will be included in the next release. I'm
going to set this to Fixed, but please let me know if you see any
issues with the fix as it exists now. If you don't use SVN and
would like me a generate a tarball for testing, I can do that

Chris Allegretta <astyanax>
Project AdministratorIn charge of this item.
Tue 26 Mar 2013 10:43:44 PM UTC, original submission:

I've just noticed a small bug in the implementation of the --poslog feature.

To reproduce:

1. Add "set poslog" to ~/.nanorc
2. Open file1 in nano via command-line argument and scroll down
3. Do step 2 also for file2
4. Open file1 again and then, without exiting, open file2 via the
"insert" command.
5. Notice that file2 is opened at the first line and has
now lost it's stored poslog position.

It seems buffers opened via "insert" write to the poslog ok but fail to read it first.

Craig Barnes <craigbarnes>


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

Attach File(s):

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 (Updated the item)
  • -unavailable- added by astyanax (Posted a comment)
  • -unavailable- added by craigbarnes (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 21 Feb 2014 01:33:19 PM UTCbensOpen/ClosedOpen=>Closed
    Fri 12 Apr 2013 06:48:26 AM UTCastyanaxStatusNone=>Fixed
      Assigned toNone=>astyanax

    Back to the top

    Powered by Savane 3.1-cleanup1