display: adjust line and column count upon a resize also when using Slang
This partially fixes https://savannah.gnu.org/bugs/?57513.master
parent
5527883c43
commit
c4d2bf59fb
|
@ -1308,7 +1308,7 @@ void regenerate_screen(void)
|
||||||
|
|
||||||
/* We could check whether COLS or LINES changed, and return otherwise,
|
/* We could check whether COLS or LINES changed, and return otherwise,
|
||||||
* but it seems curses does not always update these global variables. */
|
* 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;
|
COLS = win.ws_col;
|
||||||
LINES = win.ws_row;
|
LINES = win.ws_row;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue