When selecting in stack dont exclude the active window

This commit is contained in:
Kovid Goyal 2021-10-31 11:05:00 +05:30
parent 663da130ae
commit 51900996ea
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -915,8 +915,7 @@ class Boss:
self.mouse_handler(ev)
def select_window_in_tab_using_overlay(self, tab: Tab, msg: str) -> None:
aw = tab.active_window
windows = tuple((w.id, w.title) for i, w in tab.windows.iter_windows_with_number(only_visible=False) if w is not aw)
windows = tuple((w.id, w.title) for i, w in tab.windows.iter_windows_with_number(only_visible=False))
if len(windows) < 1:
self.visual_window_select_action_trigger(windows[0][0] if windows else 0)
if get_options().enable_audio_bell: