From c4d2bf59fbd4a576c0778840188d407bfefbf061 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 1 Jan 2020 14:17:03 +0100 Subject: [PATCH] display: adjust line and column count upon a resize also when using Slang This partially fixes https://savannah.gnu.org/bugs/?57513. --- src/nano.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nano.c b/src/nano.c index edfd6490..289317d6 100644 --- 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