bugGNU nano - Bugs: bug #48318, verbatim input is too gluttonous

 
 

bug #48318: verbatim input is too gluttonous

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sun 26 Jun 2016 01:53:35 PM UTC  
 
Severity: 2 - MinorStatus: 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.

 

Mon 01 Aug 2016 12:57:11 PM UTC, comment #1:

Fixed in git, 08c51cf.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 26 Jun 2016 01:53:35 PM UTC, original submission:

In the manual it says that verbatim input inserts the next keystroke verbatim into the text. (It says "character", but "keystroke" is meant.) However, if during verbatim input nano is stalled (which one can simulate by inserting a sleep(3) at the start of get_verbatim_kbinput()), all the available keystrokes in the keystroke buffer get inserted verbatim. I don't think this is the intention. When the machine is under pressure or a remote connection is choking, this shouldn't result in ^Cs or ^Xs (given far after an M-V) being entered into the text instead of being acted upon.

Expected behavior: after an M-V only the first keystroke is entered verbatim into the text (as a control code or an escape sequence).

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:
   

Attached Files
file #37919:  0001-input-eat-verbatim-only-a-control-code-or-one-or-mor.patch added by bens (2KiB - text/x-diff - a version of the patch that compiles)

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 11 Aug 2016 10:52:07 AM UTCbensOpen/ClosedOpen=>Closed
    Mon 01 Aug 2016 12:57:11 PM UTCbensStatusIn Progress=>Fixed
    Sun 17 Jul 2016 10:59:37 AM UTCbensAttached File-=>Added 0001-input-eat-verbatim-only-a-control-code-or-one-or-mor.patch, #37919
    Sun 17 Jul 2016 10:58:53 AM UTCbensAttached File#37918=>Removed
    Sun 17 Jul 2016 10:34:23 AM UTCbensAttached File-=>Added 0001-input-take-in-only-control-codes-verbatim.patch, #37918
      StatusNone=>In Progress
      Assigned toNone=>bens

    Back to the top


    Powered by Savane 3.1-cleanup1