We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bfdaf7 commit d9f35b6Copy full SHA for d9f35b6
ptpython/layout.py
@@ -374,7 +374,10 @@ def toggle_vi_mode(cli, mouse_event):
374
elif cli.current_buffer.selection_state.type == SelectionType.CHARACTERS:
375
append((token.InputMode, 'Vi (VISUAL)', toggle_vi_mode))
376
append((token, ' '))
377
- elif mode == InputMode.INSERT:
+ elif cli.current_buffer.selection_state.type == 'BLOCK':
378
+ append((token.InputMode, 'Vi (VISUAL BLOCK)', toggle_vi_mode))
379
+ append((token, ' '))
380
+ elif mode in (InputMode.INSERT, 'vi-insert-multiple'):
381
append((token.InputMode, 'Vi (INSERT)', toggle_vi_mode))
382
383
elif mode == InputMode.NAVIGATION:
0 commit comments