diff --git a/jupyter_console/ptshell.py b/jupyter_console/ptshell.py index 12fb38b..3cca413 100644 --- a/jupyter_console/ptshell.py +++ b/jupyter_console/ptshell.py @@ -372,7 +372,7 @@ def init_history(self): def vi_mode(self): if (getattr(self, 'editing_mode', None) == 'vi' and self.prompt_includes_vi_mode): - return '['+str(self.pt_cli.app.vi_state.input_mode)[3:6]+'] ' + return '['+self.pt_cli.app.vi_state.input_mode[3:6]+'] ' return '' def get_prompt_tokens(self, ec=None):