mirror of git://git.sv.gnu.org/nano.git
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:
parent
5527883c43
commit
c4d2bf59fb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue