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

 
 

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

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

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

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>
Group administrator
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>
Group administrator

 

(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 (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-09-02 bens Open/ClosedOpen Closed
    2016-08-25 bens StatusNone 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.13-4448.
    Corresponding source code