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

 
 

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

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

Submitter:  Benno Schulenberg <bens>
Submitted:  Thu 17 Mar 2016 10:17:06 AM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

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

Fixed in SVN, r5742.

Benno Schulenberg <bens>
Group administrator
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>
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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-06-20 bens Open/ClosedOpen Closed
    2016-03-19 bens StatusIn 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
    2016-03-19 bens StatusNone In Progress
        Assigned toNone bens

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code