nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 8977c4b1537743946dfba2cc1643bee016c1217e
parent c85dc05965a52ab5f29501a436c69cbaf79b907b
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Sun, 16 Mar 2014 16:58:18 +0000

Displaying more help items when the terminal is wider.


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4645 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
MChangeLog | 3+++
Msrc/nano.h | 2+-
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,6 @@ +2014-03-16 Benno Schulenberg <bensberg@justemail.net> + * src/nano.h - Display more help items when the terminal is wider. + 2014-03-14 Benno Schulenberg <bensberg@justemail.net> * src/nano.c (main) - When in a UTF-8 locale, use prettier characters (»·) for indicating whitespace, and for similarity use ">." instead of diff --git a/src/nano.h b/src/nano.h @@ -795,7 +795,7 @@ enum #define NOVIEW FALSE /* The maximum number of entries displayed in the main shortcut list. */ -#define MAIN_VISIBLE 12 +#define MAIN_VISIBLE (((COLS + 40) / 20) * 2) /* The minimum editor window columns and rows required for nano to work * correctly. */