bugGNU nano - Bugs: bug #64168, warning message when using search...

 
 

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

bug #64168: warning message when using search and replace

Submitter:  Matteo Raso <elucidex>
Submitted:  Tue 09 May 2023 07:08:47 AM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Jump to the original submission

Thu 02 May 2024 05:32:28 AM UTC, comment #9: 

The fix was released in nano-8.0.  Thanks again for reporting.

Benno Schulenberg <bens>
Group administrator
Sat 30 Mar 2024 10:24:10 AM UTC, comment #8: 

"Fixed" in git, commit 86108570, by simply removing the unnecessary warning -- it appears to be too hard to catch all possible oversteppings of the edges of the screen in advance.

Thanks for reporting.

Benno Schulenberg <bens>
Group administrator
Sun 21 May 2023 09:46:58 AM UTC, comment #7: 

When you have a reproduction recipe, please post again.

Benno Schulenberg <bens>
Group administrator
Mon 15 May 2023 07:26:20 PM UTC, comment #6: 


>When you originally saw the message, did you have whitespace in the search string or in the replacement string?


No.

>Do you have 'set atblanks' in your .nanorc?


Yes.

>Do you use 'set nohelp'?


No.

>Do you use 'set emptyline'?


No.

>Do you use 'set linenumbers'?


Yes.

Matteo Raso <elucidex>
Mon 15 May 2023 07:19:54 AM UTC, comment #5: 

When you originally saw the message, did you have whitespace in the search string or in the replacement string?  Do you have 'set atblanks' in your .nanorc?  Do you use 'set nohelp'?  Do you use 'set emptyline'?  Do you use 'set linenumbers'?

Benno Schulenberg <bens>
Group administrator
Fri 12 May 2023 03:28:31 AM UTC, comment #4: 


>When your terminal has 24 rows, then the warning message cannot be "Badness: tried to display a chunk on row 19", because row 19 is onscreen, in the viewport.


I might have reduced the size of the terminal that session. When I checked `stty size`, I was using a terminal at its default size.

>But if a line would get duplicated in nano's viewport, then it could only be the first line/row or the last line/row in the viewport.  Not a random line/row.  Does that match what you saw?


Yes.

> Do you sometimes put to sleep (with ^T^Z or similar) and then use 'fg' to resume nano?


No.

Matteo Raso <elucidex>
Wed 10 May 2023 04:30:27 PM UTC, comment #3: 

When your terminal has 24 rows, then the warning message cannot be "Badness: tried to display a chunk on row 19", because row 19 is onscreen, in the viewport.  If your terminal really had 24 rows and the message really said "row 19", it means something (not nano) must have set LINES to a value smaller than 24.  When LINES does not match the actual number of rows of the terminal, ncurses (and thus nano) will get confused.

In your original submission you said that "it duplicates a random line".  But if a line would get duplicated in nano's viewport, then it could only be the first line/row or the last line/row in the viewport.  Not a random line/row.  Does that match what you saw?

Do you sometimes put to sleep (with ^T^Z or similar) and then use 'fg' to resume nano?

Benno Schulenberg <bens>
Group administrator
Wed 10 May 2023 06:53:18 AM UTC, comment #2: 


>What size (`stty size`) is your terminal?


24 80

>What terminal?


xfce4-terminal

>Which version of nano?


7.2

>What kind of file are you editing?


Python file.

>Does it contain many overlong lines or just a few?


Many.

>Can you elicit the warning also when using just --ignorerc --softwrap?


I wasn't able to, but the bug is inconsistent. In fact, after rebooting my computer, I'm struggling to reproduce the bug under normal circumstances.

Matteo Raso <elucidex>
Tue 09 May 2023 09:35:45 AM UTC, comment #1: 

What size (`stty size`) is your terminal?  What terminal?  Which version of nano?  What kind of file are you editing?  Does it contain many overlong lines or just a few?  Can you elicit the warning also when using just --ignorerc --softwrap?

Benno Schulenberg <bens>
Group administrator
Tue 09 May 2023 07:08:47 AM UTC, original submission:  

When attempting to use search and replace, I sometimes get the following
error message when using the "replace all" option:

Badness: tried to display a chunk on row 19 -- please report a bug

Despite the error, the replacement went fine, but it duplicates a random
line, although this duplicate line goes away when I move my cursor.
From my attempts to reproduce  the bug, it seems to happen when I quickly use "replace all" as soon as I'm giving the option to do so.

Matteo Raso <elucidex>

 

(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 (Posted a comment)
  • -email is unavailable- added by elucidex (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 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-05-02 bens Open/ClosedOpen Closed
    2024-03-30 bens StatusNeed Info Fixed
        Assigned toNone bens
    2023-05-21 bens Assigned tobens None
    2023-05-15 bens SummaryError message when using search and replace warning message when using search and replace
    2023-05-09 bens Severity3 - Normal 2 - Minor
        StatusNone Need Info
        Assigned toNone bens

    Back to the top

    Powered by Savane 3.13-12ab.
    Corresponding source code