bugGNU nano - Bugs: bug #54274, an attempt to rebind M-Ins or...

 
 

bug #54274: an attempt to rebind M-Ins or M-Del does not get flagged as an error

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Mon 09 Jul 2018 08:05:31 AM UTC  
 
Severity:  2 - Minor Status:  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.

 

Wed 11 Jul 2018 12:54:38 PM UTC, comment #2:

Fixed in git, commit 3bac3c4c.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Wed 11 Jul 2018 12:42:00 PM UTC, comment #1:

Also, trying to rebind ^{, ^|, and ^} do not get reported as an error, but the attempts do not work, have no effect.

Expected behavior: they should get rejected as invalid key names.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 09 Jul 2018 08:05:31 AM UTC, original submission:

To reproduce, add the following six lines to your .nanorc:

bind Del whitespacedisplay main
bind Ins whitespacedisplay main
bind ^Del whitespacedisplay main
bind ^Ins whitespacedisplay main
bind M-Del whitespacedisplay main
bind M-Ins whitespacedisplay main

See that the first two lines are green, but the latter four are red. Then run nano and exit from it, and see that it protests about the middle two lines being incorrect (Key name ^Del is invalid, Key name ^Ins is invalid), but it says nothing about M-Del and M-Ins. In fact, nano has rebound M-D and M-I to the whitespacedisplay function. This is wrong.

Expected behaviour: M-Del and M-Ins should get reported as invalid key names and the attempted rebinding should be ignored.

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 Files:
   
   
Comment:
   

No files currently attached

 

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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-09-10 bens Open/ClosedOpen => Closed
    2018-07-11 bens StatusIn Progress => Fixed
    2018-07-11 bens StatusNone => In Progress
        Assigned toNone => bens

    Back to the top


    Powered by Savane 3.3