...
This commit is contained in:
parent
a788cd9f64
commit
d160db1bcd
@ -908,14 +908,15 @@ class Boss:
|
|||||||
cvs = self.current_visual_select
|
cvs = self.current_visual_select
|
||||||
|
|
||||||
def chosen(ans: Union[None, int, str]) -> None:
|
def chosen(ans: Union[None, int, str]) -> None:
|
||||||
if cvs and self.current_visual_select is cvs and isinstance(ans, int):
|
q = self.current_visual_select
|
||||||
|
self.current_visual_select = None
|
||||||
|
if cvs and q is cvs and isinstance(ans, int):
|
||||||
for tab in self.all_tabs:
|
for tab in self.all_tabs:
|
||||||
if tab.id == tab_id:
|
if tab.id == tab_id:
|
||||||
w = self.window_id_map.get(ans)
|
w = self.window_id_map.get(ans)
|
||||||
if w is not None:
|
if w is not None:
|
||||||
cvs.callback(tab, w)
|
cvs.callback(tab, w)
|
||||||
break
|
break
|
||||||
self.current_visual_select = None
|
|
||||||
self.choose_entry(msg, windows, chosen)
|
self.choose_entry(msg, windows, chosen)
|
||||||
|
|
||||||
@ac('win', '''
|
@ac('win', '''
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user