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

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

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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.

 

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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-05-05 bens StatusNone => Fixed
        Assigned toNone => bens

    Back to the top


    Powered by Savane 3.6