bugGNU nano - Bugs: bug #54649, when in view mode, the Search...


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

bug #54649: when in view mode, the Search prompt allows toggling to Replace

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Wed 12 Sep 2018 04:20:09 PM UTC
Severity:  4 - Important Status:  Fixed
Assigned to:  bens Open/Closed:  Closed
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:


Wed 12 Sep 2018 05:25:44 PM UTC, comment #1: 

Fixed in git, commit 6cd53e7f.

Benno Schulenberg <bens>
Project Administrator
Wed 12 Sep 2018 04:20:09 PM UTC, original submission:  

To reproduce, run:

  src/nano --ignore --view  NEWS

and type: ^W ^R the <Enter> ==== <Enter> A.

See how nano has modified the buffer, making more than nine hundred replacements.  And this in view mode.  Oops...

This may look harmless, because there deosn't seem to be a way to save the changed buffer (^S and ^O don't work), but typing ^X will ask whether to save the changed buffer, and when saying Y, the modified buffer gets saved!  Oops.  Maybe view mode should also prevent all writing to storage, just to be sure?

(Originally and indirectly reported by Liu Hao in http://lists.gnu.org/archive/html/nano-devel/2018-09/msg00038.html.)

Benno Schulenberg <bens>
Project Administrator


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

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.

    Only logged-in users can vote.





    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-09-19 bens Severity2 - Minor => 4 - Important
    2018-09-19 bens Open/ClosedOpen => Closed
    2018-09-12 bens StatusIn Progress => Fixed

    Back to the top

    Powered by Savane 3.9