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.
|