bugGNU nano - Bugs: bug #58469, redrawing the screen with ^L does...

 
 

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

bug #58469: redrawing the screen with ^L does not work at a prompt

Submitter:  Benno Schulenberg <bens>
Submitted:  Sun 31 May 2020 01:41:12 PM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Thu 04 Jun 2020 08:52:05 AM UTC, comment #3: 

Fixed in git, commit d729edae.

Benno Schulenberg <bens>
Group administrator
Mon 01 Jun 2020 09:50:19 AM UTC, comment #2: 

Making full_refresh() "universal" was not enough, but rebinding should work now in the attached version of the patch.

(file #49196)

Benno Schulenberg <bens>
Group administrator
Mon 01 Jun 2020 08:18:02 AM UTC, comment #1: 

^L doing a refresh at a prompt worked fine in version 2.0.9 and before.  It does not work any more in version 2.1.10 -- I don't have the versions in between.  So probably the work to make the keys rebindable broke this feature.

Attached patch fixes it, but with a "blind", unlisted ^L -- listing it in each menu would unnecessarily crowd those menus.

Oh... maybe full_refresh() should become a universal function?  Then it ought to be rebindable even when unlisted.

Benno Schulenberg <bens>
Group administrator
Sun 31 May 2020 01:41:12 PM UTC, original submission:  

To reproduce, first do 'tty' and note what it says.
Then run 'src/nano --ignore README' and type: ^W
Now, in another terminal, do 'cat THANKS >theothertty', where "theothertty" is what was shown by 'tty' on the first terminal.

Go back to the first terminal and see that screen has been messed up (overwitten by the lines of THANKS but without any carriage returns).  Now try typing ^L.  The cursor jumps back t the invisible prompt bar, nano beeps, but the screen is not restured.

Now type ^C.  The help lines are partially restored but the title bar and the text in the edit window are still missing.  Now type ^L.  The screen is fully restored.

Expected behavior: also at any prompt, ^L should redraw the entire screen.

Benno Schulenberg <bens>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2020-07-30 bens Open/ClosedOpen Closed
    2020-06-04 bens StatusIn Progress Fixed
    2020-06-01 bens Attached File- Added 0001-bindings-make-Refresh-L-work-at-all-the-prompts-agai.patch, #49196
    2020-05-31 bens Severity3 - Normal 2 - Minor
        StatusNone In Progress

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code