bugGNU nano - Bugs: bug #48796, the answer to a prompt wraps to...

 
 

bug #48796: the answer to a prompt wraps to next line when terminal becomes narrower

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Tue 16 Aug 2016 07:42:01 AM UTC  
 
Severity: 3 - NormalStatus: Fixed
Assigned to: Benno Schulenberg <bens>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 25 Aug 2016 06:32:42 PM UTC, comment #1:

Fixed in git, 5061614.

The rest of the comments deserve their own bugs -- one is already there: bug #48894.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Tue 16 Aug 2016 07:42:01 AM UTC, original submission:

To reproduce, run 'src/nano --ignore README', type ^O and then make the terminal narrower and narrower. At some point the prompt answer (README) will overwrite the first part of the two help lines.

Bug exists since nano-2.4.2, since the improved sigwinch handling.

Expected behavior: the prompt answer should not wrap. But also: nano should show more of the /answer/ when space becomes tight, instead of the question. Currently, when the terminal is very narrow, nano shows /nothing/ of the answer: it just shows $, a cursor, and a space. I think it should always at least show the last character of the answer. That should be easily feasible, because currently it doesn't use the last column of the prompt bar at all -- which is wasteful (but it is because of a different bug: when you move the cursor left, it fails to show a $ there, which would indicate that the answer is longer than what is visible).

So, instead of the current colon+$+cursor+space, I would like to see colon+$+char+cursor+space. And probably it should not show the beginning of the prompt question but the tail -- currently, when you toggle say DOS-format or Append, you don't see anything change when the terminal is very narrow. When showing the tail of the question, you have a much better chance of still getting some feedback on the toggles.

Benno Schulenberg <bens>
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:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bens (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 02 Sep 2016 07:38:08 AM UTCbensOpen/ClosedOpen=>Closed
    Thu 25 Aug 2016 06:32:42 PM UTCbensStatusNone=>Fixed
      Summarythe answer to a prompt wraps to next line on very narrow terminals=>the answer to a prompt wraps to next line when terminal becomes narrower

    Back to the top


    Powered by Savane 3.1-cleanup1