Fix canceling the select window overlay not calling the callback in stack layout
This commit is contained in:
parent
905fbeec14
commit
8630c7a700
1 changed files with 2 additions and 2 deletions
|
|
@ -947,8 +947,8 @@ def select_window_in_tab_using_overlay(self, tab: Tab, msg: str, only_window_ids
|
|||
def chosen(ans: Union[None, int, str]) -> None:
|
||||
q = self.current_visual_select
|
||||
self.current_visual_select = None
|
||||
if cvs and q is cvs and isinstance(ans, int):
|
||||
q.trigger(ans)
|
||||
if cvs and q is cvs:
|
||||
q.trigger(ans if isinstance(ans, int) else 0)
|
||||
return self.choose_entry(msg, windows, chosen)
|
||||
|
||||
@ac('win', '''
|
||||
|
|
|
|||
Loading…
Reference in a new issue