bugGNU nano - Bugs: bug #60516, on a one-row terminal, the number...

 
 

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

bug #60516: on a one-row terminal, the number of replacements is not reported

Submitter:  Benno Schulenberg <bens>
Submitted:  Tue 04 May 2021 09:44:29 AM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Sun 23 May 2021 05:13:33 PM UTC, comment #3: 

Subsumed under bug #60570.

Benno Schulenberg <bens>
Group administrator
Wed 05 May 2021 09:37:59 AM UTC, comment #2: 

Fixed in git, commit b368faf1, by not scheduling a refresh but executing it right away, so that any message that gets written afterward does not get overwritten.

Benno Schulenberg <bens>
Group administrator
Tue 04 May 2021 09:48:07 AM UTC, comment #1: 

Bug exists since version 2.7.2.  The offending commit is f920e0d3: "replace some unneeded direct calls of edit_refresh()".

Apparently the edit_refresh() in do_replace() was needed there to prevent the "Replaced %lu occurrences" message from being overwritten when on a one-row terminal.

(Probably the same problem occurs for the "This is the only occurrence" message.)

Benno Schulenberg <bens>
Group administrator
Tue 04 May 2021 09:44:29 AM UTC, original submission:  

To reproduce, make your terminal just one row and run:

src/nano --ignore IMPROVEMENTS

Then type: M-R the <Enter> xxx <Enter> A
See that the first line of the file is displayed again, as if nothing happened, instead of displaying "[ Replaced 85 occurrences ]".

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

    Date Changed by Updated Field Previous Value => Replaced by
    2021-05-23 bens Open/ClosedOpen Closed
    2021-05-05 bens StatusNone Fixed
        Assigned toNone bens

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code