mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
Make window left/right skip windows that are already visible in other mainwins
This commit is contained in:
parent
c0123a1487
commit
29e36a8fb0
1 changed files with 4 additions and 2 deletions
|
|
@ -1642,7 +1642,8 @@ static int window_refnum_left(int refnum, int wrap)
|
|||
break;
|
||||
|
||||
window = window_find_refnum(refnum);
|
||||
} while (!WINDOW_STICKY_MATCH(window, find_sticky));
|
||||
} while (!WINDOW_STICKY_MATCH(window, find_sticky) ||
|
||||
is_window_visible(window));
|
||||
|
||||
return refnum;
|
||||
}
|
||||
|
|
@ -1664,7 +1665,8 @@ static int window_refnum_right(int refnum, int wrap)
|
|||
break;
|
||||
|
||||
window = window_find_refnum(refnum);
|
||||
} while (!WINDOW_STICKY_MATCH(window, find_sticky));
|
||||
} while (!WINDOW_STICKY_MATCH(window, find_sticky) ||
|
||||
is_window_visible(window));
|
||||
|
||||
return refnum;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue