File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -69,10 +69,23 @@ class ModalCursorShapeConfig(CursorShapeConfig):
69
69
70
70
def get_cursor_shape (self , application : Application [Any ]) -> CursorShape :
71
71
if application .editing_mode == EditingMode .VI :
72
- if application .vi_state .input_mode == InputMode .INSERT :
72
+ if application .vi_state .input_mode in {
73
+ InputMode .NAVIGATION ,
74
+ }:
75
+ return CursorShape .BLOCK
76
+ if application .vi_state .input_mode in {
77
+ InputMode .INSERT ,
78
+ InputMode .INSERT_MULTIPLE ,
79
+ }:
73
80
return CursorShape .BEAM
74
- if application .vi_state .input_mode == InputMode .REPLACE :
81
+ if application .vi_state .input_mode == {
82
+ InputMode .REPLACE ,
83
+ InputMode .REPLACE_SINGLE ,
84
+ }:
75
85
return CursorShape .UNDERLINE
86
+ elif application .editing_mode == EditingMode .EMACS :
87
+ # like vi's INSERT
88
+ return CursorShape .BEAM
76
89
77
90
# Default
78
91
return CursorShape .BLOCK
You can’t perform that action at this time.
0 commit comments