nano

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

commit c4d2bf59fbd4a576c0778840188d407bfefbf061
parent 5527883c434e6dd81a4fe2d07e68b063a26876d7
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed,  1 Jan 2020 14:17:03 +0100

display: adjust line and column count upon a resize also when using Slang

This partially fixes https://savannah.gnu.org/bugs/?57513.

Diffstat:
Msrc/nano.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nano.c b/src/nano.c @@ -1308,7 +1308,7 @@ void regenerate_screen(void) /* We could check whether COLS or LINES changed, and return otherwise, * but it seems curses does not always update these global variables. */ -#ifdef REDEFINING_MACROS_OK +#if defined(USE_SLANG) || defined(REDEFINING_MACROS_OK) COLS = win.ws_col; LINES = win.ws_row; #endif