Use slots number for visual selection

This commit is contained in:
Kovid Goyal 2021-10-31 21:20:16 +05:30
parent d53d92b890
commit cc502163cb
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -882,7 +882,7 @@ class Boss:
if only_window_ids and window.id not in only_window_ids: if only_window_ids and window.id not in only_window_ids:
continue continue
ac = KeyAction('visual_window_select_action_trigger', (window.id,)) ac = KeyAction('visual_window_select_action_trigger', (window.id,))
num += 1 num = idx + 1
is_last = num == 10 is_last = num == 10
if is_last: if is_last:
num = 0 num = 0