forked from PsychoticNinja/irssi
Merge pull request #946 from ailin-nemui/resize-freeze
fix irssi being stuck when resized very small
This commit is contained in:
commit
630c6f7e14
@ -285,8 +285,13 @@ static MAIN_WINDOW_REC *mainwindows_find_lower(MAIN_WINDOW_REC *window)
|
|||||||
MAIN_WINDOW_REC *best;
|
MAIN_WINDOW_REC *best;
|
||||||
GSList *tmp;
|
GSList *tmp;
|
||||||
|
|
||||||
|
/* unfortunate special case: if the window has been resized
|
||||||
|
and there is not enough room, the last_line could become
|
||||||
|
smaller than the first_line, sending us in an infinite
|
||||||
|
loop */
|
||||||
if (window != NULL)
|
if (window != NULL)
|
||||||
last_line = window->last_line;
|
last_line =
|
||||||
|
window->last_line > window->first_line ? window->last_line : window->first_line;
|
||||||
else
|
else
|
||||||
last_line = -1;
|
last_line = -1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user