forked from PsychoticNinja/irssi
Merge pull request #57 from ailin-nemui/lr-skip-visible
Make window left/right skip windows that are already visible in other…
This commit is contained in:
commit
53187de6a2
@ -1642,7 +1642,7 @@ 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 +1664,7 @@ 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…
x
Reference in New Issue
Block a user