mirror of https://github.com/dbcli/pgcli
Use InputMode.REPLACE_SINGLE (#1208)
InputMode.REPLACE_SINGLE was added to prompt-toolkit. This fixes Exception <InputMode.REPLACE_SINGLE: 'vi-replace-single'> in single-char replace mode when using prompt_toolkit>=3.0.6.
This commit is contained in:
parent
223015a1fa
commit
e9c97072af
|
@ -7,6 +7,7 @@ def _get_vi_mode():
|
|||
InputMode.INSERT: "I",
|
||||
InputMode.NAVIGATION: "N",
|
||||
InputMode.REPLACE: "R",
|
||||
InputMode.REPLACE_SINGLE: "R",
|
||||
InputMode.INSERT_MULTIPLE: "M",
|
||||
}[get_app().vi_state.input_mode]
|
||||
|
||||
|
|
Loading…
Reference in New Issue