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

This partially fixes https://savannah.gnu.org/bugs/?57513.
This commit is contained in:
Benno Schulenberg 2020-01-01 14:17:03 +01:00
parent 5527883c43
commit c4d2bf59fb
1 changed files with 1 additions and 1 deletions

View File

@ -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