nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] indenting the key lists by one space


From: Benno Schulenberg
Subject: [Nano-devel] indenting the key lists by one space
Date: Mon, 19 Jun 2006 15:46:17 +0200
User-agent: KMail/1.9.3

Hi,

When using an xterm and especially a Konsole, the key list of the 
main help text gets almost glued to the left window border.  It 
would be nicer if these key lists were indented by one space, just 
like the explanatory text above it.  Attached patch does this.  
(It's probably not entirely correct, as I don't grasp the code in 
those sentinel blocks: in one the string gets truncated, in the 
other not.  Is it needed?  Or maybe a left-over?)

If the patch is accepted, the headlines of the help texts would all 
have to be indented by one space too, but that would change the 
message strings, so that's not a good change to make now.


Something else (it's hardly important, but I noticed it while 
experimenting): when setting the terminal size smaller than 80 
columns, some of the key explanations get truncated instead of 
wrapped.  The explanations of the toggles, though, do get wrapped.
Also, the introductory explanatory text seems to get wrapped at 
COLS-9, instead of at the width of the screen (or at COLS-1, for 
symmetry with the left indent).

Set for example the terminal width to 50, and see how the main help 
text gets wrapped too early, the key explanations are chopped off, 
and the toggle explanations are wrapped again too early (except 
when they do fit on a single line).

Benno

Attachment: nano--help-keys-indent.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]