bugGNU nano - Bugs: bug #46825, if KEY_HOME is not defined, a...

 
 

bug #46825: if KEY_HOME is not defined, a capital H goes home

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Tue 05 Jan 2016 09:12:23 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 07 Jan 2016 06:18:23 PM UTC, comment #1:

Both ncurses and slang define KEY_HOME and KEY_END, so the #ifdefs are entirely pointless. They were removed in SVN, r5536.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Tue 05 Jan 2016 09:12:23 PM UTC, original submission:

Of course ncurses defines KEY_HOME, but maybe slang doesn't? If that is the case, then the #ifdefs in assign_keyinfo() will result in shift+H moving the cursor home, and Shift+E moving the cursor to the end of the line. Not good.

Either the #ifdefs will have to be modified to use a dummy key when KEY_HOME and KEY_END are not defined, or all uses of the "Home" and "End" strings will have to be #ifdef'd.

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

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 07 Jan 2016 06:18:23 PM UTCbensStatusNone=>Fixed
      Assigned toNone=>bens
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1