Show More
@@ -17,7 +17,12 b' class Prompts(object):' | |||||
17 | def vi_mode(self): |
|
17 | def vi_mode(self): | |
18 | if (getattr(self.shell.pt_app, 'editing_mode', None) == EditingMode.VI |
|
18 | if (getattr(self.shell.pt_app, 'editing_mode', None) == EditingMode.VI | |
19 | and self.shell.prompt_includes_vi_mode): |
|
19 | and self.shell.prompt_includes_vi_mode): | |
20 |
|
|
20 | mode = str(self.shell.pt_app.app.vi_state.input_mode) | |
|
21 | if mode.startswith('InputMode.'): | |||
|
22 | mode = mode[10:13].lower() | |||
|
23 | elif mode.startswith('vi-'): | |||
|
24 | mode = mode[3:6] | |||
|
25 | return '['+mode+'] ' | |||
21 | return '' |
|
26 | return '' | |
22 |
|
27 | |||
23 |
|
28 |
General Comments 0
You need to be logged in to leave comments.
Login now