bugGNU nano - Bugs: bug #61420, trailing stuff causes a bind...

 
 

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

bug #61420: trailing stuff causes a bind command to be colored red as if invalid

Submitter:  Benno Schulenberg <bens>
Submitted:  Wed 03 Nov 2021 03:23:01 PM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Wed 03 Nov 2021 04:00:37 PM UTC, comment #1: 

Fixed in git, commit 4d9be133, by dropping the constraint that required trailing whitespace or a trailing comment before coloring a bind or unbind command as valid.

Benno Schulenberg <bens>
Group administrator
Wed 03 Nov 2021 03:23:01 PM UTC, original submission:  

To reproduce, run 'nano ~/.nanorc' and add this line:

bind F8 comment main tralala

See that the whole "F8 comment main tralala" is colored red, as if the bind were invalid.  But now rerun nano and see that F8 does what it has been bound to.

Expected behavior: only the trailing "tralala" should be colored red -- as long as the bind command itself is fine.

Benno Schulenberg <bens>
Group administrator

 

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

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

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

    Date Changed by Updated Field Previous Value => Replaced by
    2021-12-16 bens Open/ClosedOpen Closed
    2021-11-03 bens StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code