bugGNU nano - Bugs: bug #49994, in softwrap mode, inserting a file...

 
 

bug #49994: in softwrap mode, inserting a file leads to display problems

Submitted by:  David Lawrence Ramsey <dolorous>
Submitted on:  Fri 06 Jan 2017 02:55:18 AM UTC  
 
Severity: 3 - NormalStatus: Fixed
Assigned to: David Lawrence Ramsey <dolorous>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 06 Jan 2017 01:04:48 PM UTC, comment #1:

Fixed in git, 35c3dbd, by one of David's patches from patch #9204. Thanks!

Benno Schulenberg <bens>
Project Administrator
Fri 06 Jan 2017 02:55:18 AM UTC, original submission:

(Originally from patch #9204.)

1. Assuming an 80x24 terminal size, run:

nano +12 --ignore --morespace --nohelp --nonewlines --smooth --softwrap src/winio.c

2. Press <Down> 10 times to manually move from line 12 down to the beginning of line 22 (the last onscreen line), so that line 22 is at the bottom of the screen. (nano +24 would center the line, so it can't be used here.)

3. Insert the attached file insertfile-test.txt at this location. The last line will be displayed incorrectly: only the first softwrapped chunk of it will be visible, and the cursor will be jammed at the end of it. Pressing <Ctrl-L> will not fix it, but pressing <Right> will.

David Lawrence Ramsey <dolorous>
Project AdministratorIn charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #39385:  insertfile-test.txt added by dolorous (1KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bens (Posted a comment)
  • -unavailable- added by dolorous (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 11 Jan 2017 10:55:10 AM UTCbensOpen/ClosedOpen=>Closed
    Fri 06 Jan 2017 01:04:48 PM UTCbensStatusNone=>Fixed
      Assigned toNone=>dolorous
    Fri 06 Jan 2017 02:55:18 AM UTCdolorousAttached File-=>Added insertfile-test.txt, #39385

    Back to the top


    Powered by Savane 3.1-cleanup1