mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 00:52:30 +02:00
Merge pull request #946 from ailin-nemui/resize-freeze
fix irssi being stuck when resized very small
This commit is contained in:
commit
630c6f7e14
1 changed files with 6 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue