Commit 122ae849 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

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
No related merge requests found
Showing with 3 additions and 4 deletions
+3 -4
...@@ -133,9 +133,7 @@ CVS code - ...@@ -133,9 +133,7 @@ CVS code -
course the curses-imposed limit that it be greater than zero). course the curses-imposed limit that it be greater than zero).
New function resize_variables(); changes to die_too_small() New function resize_variables(); changes to die_too_small()
(renamed check_die_too_small()), global_init(), window_init(), (renamed check_die_too_small()), global_init(), window_init(),
and handle_sigwinch(). (David Benbennick) DLR: Tweak the and handle_sigwinch(). (David Benbennick)
coordinate formula in window_init() so that the statusbar
prompt is always visible.
- Use void instead of RETSIGTYPE, as signal handlers are - Use void instead of RETSIGTYPE, as signal handlers are
supposed to return void anyway. Also, the value of RETSIGTYPE supposed to return void anyway. Also, the value of RETSIGTYPE
is sometimes misdetected as int, leading to compilation is sometimes misdetected as int, leading to compilation
......
...@@ -240,7 +240,8 @@ void window_init(void) ...@@ -240,7 +240,8 @@ void window_init(void)
/* Set up the windows. */ /* Set up the windows. */
topwin = newwin(2 - no_more_space(), COLS, 0, 0); topwin = newwin(2 - no_more_space(), COLS, 0, 0);
edit = newwin(editwinrows, COLS, 2 - no_more_space(), 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. */ /* Turn the keypad back on. */
keypad(edit, TRUE); keypad(edit, TRUE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment