bugGNU nano - Bugs: bug #46945, statusbar does not preserve cursor...

 
 

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

bug #46945: statusbar does not preserve cursor position

Submitter:  Benno Schulenberg <bens>
Submitted:  Thu 21 Jan 2016 12:42:57 PM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Thu 21 Jan 2016 05:31:01 PM UTC, comment #5: 

Fixed in SVN, r5576.

Benno Schulenberg <bens>
Group administrator
Thu 21 Jan 2016 04:52:50 PM UTC, comment #4: 

There is one little thing that the patch doesn't fix: when in 2.3.4 you do ^R, 12345, <Home>, ^T, Alt+G, wah, ^C, ^C, the cursor will still be on the "1".  After the patch it will be on the "4".

Well, I could live with that.  But... let's put in the better patch anyway.  Even though I don't really know how it works!

(file #36113)

Benno Schulenberg <bens>
Group administrator
Thu 21 Jan 2016 01:58:24 PM UTC, comment #3: 

Here is a prettier patch.  Twenty eight lines deleted, and more to follow...  :)

(file #36112)

Benno Schulenberg <bens>
Group administrator
Thu 21 Jan 2016 01:37:37 PM UTC, comment #2: 

Attached crude patch "fixes" it.

I don't see what it breaks yet, but it looks good: we can get rid of a whole load of unneeded stuff again.

(file #36109)

Benno Schulenberg <bens>
Group administrator
Thu 21 Jan 2016 01:07:23 PM UTC, comment #1: 

It broke with r5029, the removal of the execute flag.

Benno Schulenberg <bens>
Group administrator
Thu 21 Jan 2016 12:42:57 PM UTC, original submission:  

Run src/nano, type ^R, type 12345 followed by <Home>.  Then type ^X or M-F.  The cursor is no longer at the start of "12345" but back at the end.

This broke somewhere between 2.3.4 and 2.3.5.

Benno Schulenberg <bens>
Group administrator

 

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

Attached Files
file #36113:  fix-amnesia.patch added by bens (1KiB - text/x-diff)
file #36112:  prettier.patch added by bens (3KiB - text/x-diff)
file #36109:  first-attempt.patch added by bens (2KiB - text/x-diff)

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2016-02-13 bens Open/ClosedOpen Closed
    2016-01-21 bens StatusIn Progress Fixed
    2016-01-21 bens Attached File- Added fix-amnesia.patch, #36113
    2016-01-21 bens Attached File- Added prettier.patch, #36112
    2016-01-21 bens Attached File- Added first-attempt.patch, #36109
        StatusNone In Progress

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code