mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 09:20:57 +01:00
minor vi mode changes
This commit is contained in:
parent
7eb392cac5
commit
0e5f75699e
2 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ class PromptToolkitShell(BaseShell):
|
|||
'enable_auto_suggest_bindings': True,
|
||||
'enable_search': True,
|
||||
'enable_abort_and_exit_bindings': True,
|
||||
'enable_open_in_editor': True
|
||||
'enable_open_in_editor': True,
|
||||
}
|
||||
major, minor = ptk_version_info()[:2]
|
||||
self.new_vi_mode_flag = (major, minor) >= (1, 0) \
|
||||
|
|
|
@ -80,8 +80,8 @@ class Prompter(object):
|
|||
editing_mode = EditingMode.VI
|
||||
else:
|
||||
editing_mode = EditingMode.EMACS
|
||||
|
||||
kwargs['editing_mode'] = editing_mode
|
||||
kwargs['vi_mode'] = builtins.__xonsh_env__.get('VI_MODE')
|
||||
cli = CommandLineInterface(
|
||||
application=create_prompt_application(message, **kwargs),
|
||||
eventloop=eventloop,
|
||||
|
|
Loading…
Add table
Reference in a new issue