Skip to content

Commit 311c26f

Browse files
Fix input mode in status bar for block selection.
1 parent c6952a8 commit 311c26f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ptpython/layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ def toggle_vi_mode(mouse_event: MouseEvent) -> None:
429429
elif app.current_buffer.selection_state.type == SelectionType.CHARACTERS:
430430
append((input_mode_t, "Vi (VISUAL)", toggle_vi_mode))
431431
append((token, " "))
432-
elif app.current_buffer.selection_state.type == "BLOCK":
432+
elif app.current_buffer.selection_state.type == SelectionType.BLOCK:
433433
append((input_mode_t, "Vi (VISUAL BLOCK)", toggle_vi_mode))
434434
append((token, " "))
435435
elif mode in (InputMode.INSERT, "vi-insert-multiple"):

0 commit comments

Comments
 (0)