bugGNU nano - Bugs: bug #48455, Esc followed by ^Arrow enters a...

 
 

bug #48455: Esc followed by ^Arrow enters a sequence into buffer

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sun 10 Jul 2016 10:28:28 AM 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.

 

Wed 13 Jul 2016 11:04:06 AM UTC, comment #2:

Fixed in git, b4babc2.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 11 Jul 2016 02:45:29 PM UTC, comment #1:

The same thing happens for <Esc> Alt+Arrow. Attached patch fixes it for me.

(file #37803)

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 10 Jul 2016 10:28:28 AM UTC, original submission:

To reproduce, run 'src/nano' and type: <Esc> Ctrl+Up <Esc> Ctrl+Down. The strings ";5A" and ";5B" are entered into the buffer. The corresponding thing happens for Ctrl+Left and Ctrl+Right.

Bug exists since nano-2.6.0. It is the added code for the iTerm sequences with a double Escape that causes this.

Expected behavior: when the sequence with a double escape is not a recognized iTerm sequence, nano should ignore the first escape and try to interpret the sequence then -- like it seemingly did before.

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:
   

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 30 Jul 2016 09:30:09 AM UTCbensOpen/ClosedOpen=>Closed
    Wed 13 Jul 2016 11:04:06 AM UTCbensStatusIn Progress=>Fixed
    Mon 11 Jul 2016 02:45:29 PM UTCbensAttached File-=>Added 0001-input-accept-only-the-four-iTerm-sequences-that-actu.patch, #37803
      StatusNone=>In Progress

    Back to the top


    Powered by Savane 3.1-cleanup1