mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
abbrevs: fix ptk2
This commit is contained in:
parent
947fa2d0b5
commit
43a4b9b66a
1 changed files with 2 additions and 1 deletions
|
@ -42,9 +42,10 @@ def custom_keybindings(bindings, **kw):
|
|||
insert_mode = ViInsertMode() | EmacsInsertMode()
|
||||
else:
|
||||
from xonsh.ptk.key_bindings import carriage_return
|
||||
from prompt_toolkit.filters import to_filter
|
||||
|
||||
handler = bindings.registry.add_binding
|
||||
insert_mode = True
|
||||
insert_mode = to_filter(True)
|
||||
|
||||
@handler(" ", filter=IsMultiline() & insert_mode)
|
||||
def handle_space(event):
|
||||
|
|
Loading…
Add table
Reference in a new issue