bugGNU nano - Bugs: bug #47440, when a search regexp is invalid,...

 
 

bug #47440: when a search regexp is invalid, it is not remembered

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Thu 17 Mar 2016 10:17:06 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.

 

Sat 19 Mar 2016 05:02:38 PM UTC, comment #1:

Fixed in SVN, r5742.

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

When searching for a regular expression, and the typed expression is somehow invalid, nano will of course say this, but it will not store this regex as the last given search string, so when you type ^W again, what you get offered is the /previous/ search string, and you will have to retype the entire regex. If it was a long one, this is majorly annoying.

To reproduce, run 'src/nano' and type: ^W M-R boo\ <Enter>.
Result: [ Bad regex "boo\": Trailing backslash ]

Type ^W again. Result: empty prompt. And an <Up> will bring back the last searched-for string. No good.

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

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 20 Jun 2016 09:48:09 AM UTCbensOpen/ClosedOpen=>Closed
    Sat 19 Mar 2016 05:02:38 PM UTCbensStatusIn Progress=>Fixed
      Summarywhen a search regexp is invalid, it is not saved in the history=>when a search regexp is invalid, it is not remembered
    Sat 19 Mar 2016 10:41:28 AM UTCbensStatusNone=>In Progress
      Assigned toNone=>bens

    Back to the top


    Powered by Savane 3.1-cleanup1