bugGNU nano - Bugs: bug #65381, searching in the Replace-With help...

 
 

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

bug #65381: searching in the Replace-With help text overwrites the string to be replaced

Submitter:  Benno Schulenberg <bens>
Submitted:  Wed 28 Feb 2024 10:15:59 AM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Open

Wed 28 Feb 2024 11:19:38 AM UTC, comment #1: 

Fixed in git, commit 3098315e, by stashing and restoring 'last_search' around the Replace-With prompt.

(Bug was found after solving bug #65369 and then trying a few scenarios.)

Benno Schulenberg <bens>
Group administrator
Wed 28 Feb 2024 10:15:59 AM UTC, original submission:  

To reproduce, run `src/nano --ignore README` and type:

M-R a <Enter> ^G ^W recall <Enter> ^G e <Enter>

See that nano reports: '[ "recall" not found ]'.  But I didn't ask to replace "recall" -- I asked to replace "a".

The prompt that asks for the replacement string allows invoking help (^G) and then searching for something (^W/^F), which will overwrite the string that was entered at the first Replace prompt.

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

    Date Changed by Updated Field Previous Value => Replaced by
    2024-02-28 bens StatusNone Fixed
        Summarydoing a search in the Replace-With help text overwrites the string to be replaced searching in the Replace-With help text overwrites the string to be replaced

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code