nano

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

commit 122ae849b8436cdc50f98a7af1706570d85a9309
parent 5040666fbb489f2641db56f860b7afcf629e08da
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Wed, 19 Jan 2005 20:55:42 +0000

oops; replace the previous tweak with a proper merge of DB's code with
the no_more_space() function


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

Diffstat:
MChangeLog | 4+---
Msrc/nano.c | 3++-
2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -133,9 +133,7 @@ CVS code - course the curses-imposed limit that it be greater than zero). New function resize_variables(); changes to die_too_small() (renamed check_die_too_small()), global_init(), window_init(), - and handle_sigwinch(). (David Benbennick) DLR: Tweak the - coordinate formula in window_init() so that the statusbar - prompt is always visible. + and handle_sigwinch(). (David Benbennick) - Use void instead of RETSIGTYPE, as signal handlers are supposed to return void anyway. Also, the value of RETSIGTYPE is sometimes misdetected as int, leading to compilation diff --git a/src/nano.c b/src/nano.c @@ -240,7 +240,8 @@ void window_init(void) /* Set up the windows. */ topwin = newwin(2 - no_more_space(), COLS, 0, 0); edit = newwin(editwinrows, COLS, 2 - no_more_space(), 0); - bottomwin = newwin(3 - no_help(), COLS, editwinrows + 1, 0); + bottomwin = newwin(3 - no_help(), COLS, editwinrows + + (2 - no_more_space()), 0); /* Turn the keypad back on. */ keypad(edit, TRUE);