From 8977c4b1537743946dfba2cc1643bee016c1217e Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 16 Mar 2014 16:58:18 +0000 Subject: [PATCH] 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 --- ChangeLog | 3 +++ src/nano.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7a61a293..4be35740 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2014-03-16 Benno Schulenberg + * src/nano.h - Display more help items when the terminal is wider. + 2014-03-14 Benno Schulenberg * 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 index 84fea3f2..53fc4b36 100644 --- 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. */ -- 2.39.5