bugGNU nano - Bugs: bug #47438, trying to abort a search with the...

 
 

bug #47438: trying to abort a search with the wrong key clogs things up

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Thu 17 Mar 2016 09:24:32 AM UTC  
 
Severity: 4 - ImportantStatus: 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.

 

Fri 06 May 2016 07:41:21 AM UTC, comment #3:

Fixed in git -- the original bug in 9cbe6a6, and the more severe second one in c918c65.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Thu 05 May 2016 07:49:12 PM UTC, comment #2:

Aaah... Cancelling a search doesn't restore nodelay mode. :|

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Thu 05 May 2016 07:21:01 PM UTC, comment #1:

The bug is even worse: when you try to abort the search with a quick ^X ^X ^X and then sit and wait, you can wait forever. Because the finding of multiple keystrokes in the input buffer has made nano go into delay mode -- it mistakenly does not restore the correct mode reading in the available keystrokes into the keybuffer. Which means that after three seconds, when nano has eaten all the ^Xs, nano sits and waits for more input in the middle of the search loop. :|

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Thu 17 Mar 2016 09:24:32 AM UTC, original submission:

When you try to abort a search in a huge file with a quick succession of five time ^X, say, and then remember to use ^C instead, it will take something like nine or ten seconds for the ^Xs to be "eaten" before finally the ^C is seen and the searching is cancelled.

When the keyboard polling routine notices that there is input, it should exhaust the entire input queue (and examine each character) before continuing the search.

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:
   

No files currently attached

 

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
    Mon 20 Jun 2016 09:47:08 AM UTCbensOpen/ClosedOpen=>Closed
    Fri 06 May 2016 07:41:21 AM UTCbensStatusIn Progress=>Fixed
    Thu 05 May 2016 07:49:12 PM UTCbensStatusNone=>In Progress
    Thu 05 May 2016 07:21:01 PM UTCbensSeverity2 - Minor=>4 - Important

    Back to the top


    Powered by Savane 3.1-cleanup1