bugGNU nano - Bugs: bug #65859, {tab} in a string bind does not...

 
 

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

bug #65859: {tab} in a string bind does not indent a marked region

Submitter:  Benno Schulenberg <bens>
Submitted:  Sun 09 Jun 2024 02:18:19 PM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Sun 09 Jun 2024 02:55:28 PM UTC, comment #1: 

Fixed in git, commit 9b7a8130, by moving the check for <Tab> plus marked region from the input routine to do_tab().

(The change was unneeded, though, because the user could have simply used {indent} instead of {tab}.  But... it does allow getting rid of a special keycode, INDENT_KEY.)

Benno Schulenberg <bens>
Group administrator
Sun 09 Jun 2024 02:18:19 PM UTC, original submission:  

To reproduce:

echo 'bind ^J "{mark}{lastline}{tab}{mark}" main' >jrc

src/nano --rc=jrc -x  README

Type:  ^J  M-P

See that only on the current line a TAB was inserted.

Expected behavior: using {tab} should work the same way as typing <Tab> on the keyboard.

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

    Date Changed by Updated Field Previous Value => Replaced by
    2024-07-13 bens Open/ClosedOpen Closed
    2024-06-09 bens Severity3 - Normal 2 - Minor
        StatusNone Fixed
        Assigned toNone bens

    Back to the top

    Powered by Savane 3.14-9aa3.
    Corresponding source code