[+] update vim, python plugin

1. fallback
    on_filter_key to
    popup_filter_menu;
    the default callback;
This commit is contained in:
Siarhei Siniak 2025-10-16 17:20:21 +03:00
parent f657d63522
commit 2eadc88afc

@ -233,12 +233,18 @@ augroup END
try:
key_str = key.decode('utf-8')
except:
return 0
return vim.Function('popup_filter_menu')(
self._popup_id, key
)
# return 0
if not key_str.isprintable():
return 0
else:
return vim.Function('popup_filter_menu')(
self._popup_id, key
)
# return 0
else:
with self._lock:
self._set_filter_pattern(self._filter_pattern + key_str)