bugGNU nano - Bugs: bug #59796, when Replace adds a magic line,...

 
 

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

bug #59796: when Replace adds a magic line, Undo does not remove it

Submitter:  Benno Schulenberg <bens>
Submitted:  Fri 01 Jan 2021 04:37:45 PM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Fri 01 Jan 2021 07:21:55 PM UTC, comment #2: 

Oops.  Amended in commit 90f6f25e.

(Somehow I thought that 'strdata' contained the data after the replacement -- but of course not: it is the original data, that gets restored when the replacement is undone.  Also, I tested that extra condition only with an empty replacement string, and not with the original recipe.)

Benno Schulenberg <bens>
Group administrator
Fri 01 Jan 2021 06:49:51 PM UTC, comment #1: 

Fixed in git, commit 0f4bb64e, by removing the added magic line when a replacement added one.

Benno Schulenberg <bens>
Group administrator
Fri 01 Jan 2021 04:37:45 PM UTC, original submission:  

To reproduce, run 'src/nano --ignore --line', and type:
M-R M-R $ <Enter> ee <Enter> A M-U
Note that upon typing "A" a magic line gets added.  But then typing M-U does not remove this added line.

Bug existed since undoing was implemented, since before version 2.1.10.

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
    2021-01-15 bens Open/ClosedOpen Closed
    2021-01-01 bens StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code