bugGNU nano - Bugs: bug #64226, a rebound speller reports...

 
 

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

bug #64226: a rebound speller reports "Unbound key" in restricted mode

Submitter:  Benno Schulenberg <bens>
Submitted:  Sun 21 May 2023 08:49:12 AM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Sun 21 May 2023 09:45:48 AM UTC, comment #1: 

Fixed in git, commit fc42ab9b, by not excluding the speller, linter and formatter from the main menu in restricted mode.  In former times, the Spell Checker was quite near the beginning in the main menu, and we didn't want it to be shown in restricted mode when it could not be used anyhow.  But since the Execute item took the place of Spell Checking, it is fine to show the Spell Checker also in restricted mode, because it is so far away in the main menu that it will only be shown when the terminal has at least 550 columns.  Very few people will have such a wide terminal.

(The issue persists, though, for the Append, Prepend, and Backup toggles in the Write-Out menu.  But... I don't see how that can be fixed.  Probably/hopefully it is never a problem: who uses those toggles anyway, and who would want to rebind them?)

Benno Schulenberg <bens>
Group administrator
Sun 21 May 2023 08:49:12 AM UTC, original submission:  

To reproduce, add the following line at the end of your ~/.nanorc:

bind ^C speller main

Then run `src/nano --restrict` and type ^C.  See that the status bar reports: "[ Unbound key: ^C ]".

Expected behavior: nano should say that the function is not allowed in restricted mode, just like it does for ^T, M-F, and M-B.

The same happens when rebinding the linter, formatter, or the execute function.

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
    2024-05-02 bens Open/ClosedOpen Closed
    2023-05-21 bens StatusIn progress Fixed

    Back to the top

    Powered by Savane 3.14-8eb0.
    Corresponding source code