From d160db1bcd647edea1eb1231f7b76dda7da249c7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 31 Oct 2021 10:20:27 +0530 Subject: [PATCH] ... --- kitty/boss.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kitty/boss.py b/kitty/boss.py index 8ba526122..b2c0e5921 100755 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -908,14 +908,15 @@ class Boss: cvs = self.current_visual_select 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: if tab.id == tab_id: w = self.window_id_map.get(ans) if w is not None: cvs.callback(tab, w) break - self.current_visual_select = None self.choose_entry(msg, windows, chosen) @ac('win', '''