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

 
 

bug #46945: statusbar does not preserve cursor position

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Thu 21 Jan 2016 12:42:57 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.

 

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

Fixed in SVN, r5576.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
Thu 21 Jan 2016 01:07:23 PM UTC, comment #1:

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

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
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>
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:
   

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

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 13 Feb 2016 10:35:49 AM UTCbensOpen/ClosedOpen=>Closed
    Thu 21 Jan 2016 05:31:01 PM UTCbensStatusIn Progress=>Fixed
    Thu 21 Jan 2016 04:52:50 PM UTCbensAttached File-=>Added fix-amnesia.patch, #36113
    Thu 21 Jan 2016 01:58:24 PM UTCbensAttached File-=>Added prettier.patch, #36112
    Thu 21 Jan 2016 01:37:37 PM UTCbensAttached File-=>Added first-attempt.patch, #36109
      StatusNone=>In Progress

    Back to the top


    Powered by Savane 3.1-cleanup1