bugGNU nano - Bugs: bug #61445, on a one-row terminal, M-C blanks...


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

bug #61445: on a one-row terminal, M-C blanks the screen

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Mon 08 Nov 2021 02:09:00 PM UTC  
Severity:  2 - Minor Status:  Fixed
Assigned to:  Benno Schulenberg <bens> Open/Closed:  Open

Tue 09 Nov 2021 11:34:22 AM UTC, comment #1: 

Fixed in git, commit f4282129, by ignoring M-C when LINES==1.

Bug existed since version 5.8.  The offending commit was 36ffb5f0: "suppress --constantshow when the terminal has just one row".  The commit forgot to handle also the toggle.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 08 Nov 2021 02:09:00 PM UTC, original submission:  

To reproduce, run:

src/nano --ignore --quick NEWS

Then type: M-C <Right> <Right> <Right> <Up>
See that the M-C clears the row and that the horizontal cursor movements nor the attempted upward movements bring the line back.

Expected behavior: since 'constantshow' does not make sense on a one-row terminal, typing M-C should simply do nothing (OR it could do the same as ^C, to give the user the feedback they seem to want and to spare them having to type ^C instead).

[Will fix this after the --zero option has been merged, as I have to touch the same area of code.]

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.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-11-09 bens StatusNone => Fixed

    Back to the top

    Powered by Savane 3.7