Force setting of terminal hardware scroll region on resize
It seems there is a race condition with VTE based terminals when created and resized almost immediatly (like when doing :new) where we end up with the hardware scroll region set to the old terminal size.
This commit is contained in:
parent
130b22ff74
commit
eb4ac85fb1
|
@ -444,6 +444,9 @@ void NCursesUI::check_resize(bool force)
|
||||||
m_window = (NCursesWin*)newwin(ws.ws_row, ws.ws_col, 0, 0);
|
m_window = (NCursesWin*)newwin(ws.ws_row, ws.ws_col, 0, 0);
|
||||||
|
|
||||||
m_dimensions = CharCoord{ws.ws_row-1, ws.ws_col};
|
m_dimensions = CharCoord{ws.ws_row-1, ws.ws_col};
|
||||||
|
|
||||||
|
if (const char* csr = tigetstr((char*)"csr"))
|
||||||
|
putp(tiparm(csr, 0, ws.ws_row));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
kak_assert(false);
|
kak_assert(false);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user