diff --git a/ChangeLog b/ChangeLog index 7a61a29378de9ebfda221acf9aab6ca83fc34766..4be3574049134e637b74c444f4f16b7ae1f1fcb9 100644 --- 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 index 84fea3f247dbc9cc175f0c569034bc8a65cae919..53fc4b36a015daa0a3d8cab0f4454e7969a900bb 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. */