mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
Make window left/right skip windows that are already visible in other mainwins
This commit is contained in:
parent
c0123a1487
commit
29e36a8fb0
@ -1642,7 +1642,8 @@ static int window_refnum_left(int refnum, int wrap)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
window = window_find_refnum(refnum);
|
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;
|
return refnum;
|
||||||
}
|
}
|
||||||
@ -1664,7 +1665,8 @@ static int window_refnum_right(int refnum, int wrap)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
window = window_find_refnum(refnum);
|
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;
|
return refnum;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user