Commit a12e801
authored
Add cursor shape indicator for vi mode (#1558)
* feat: enable modal cursor shape in vi mode
When vi = True, users expect the cursor to reflect modal state
(block in NORMAL, beam in INSERT, underline in REPLACE).
ModalCursorShapeConfig exists in prompt_toolkit for exactly this.
Without it, cursor=None resolves to CursorShape._NEVER_CHANGE,
so no DECSCUSR sequences are ever written regardless of mode.
* Add cursor shape indicator to vi mode changelog1 parent d0a6cc2 commit a12e801
2 files changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
1087 | 1088 | | |
1088 | 1089 | | |
1089 | 1090 | | |
| 1091 | + | |
1090 | 1092 | | |
1091 | 1093 | | |
1092 | 1094 | | |
| |||
0 commit comments