diff options
-rw-r--r-- | src/cursor_shape.c | 32 | ||||
-rw-r--r-- | src/cursor_shape.h | 1 |
2 files changed, 0 insertions, 33 deletions
diff --git a/src/cursor_shape.c b/src/cursor_shape.c index 05d51e1c9d..19db088817 100644 --- a/src/cursor_shape.c +++ b/src/cursor_shape.c @@ -207,35 +207,3 @@ char_u *parse_shape_opt(int what) return NULL; } - -/* - * Return the index into shape_table[] for the current mode. - * When "mouse" is TRUE, consider indexes valid for the mouse pointer. - */ -int get_shape_idx(int mouse) -{ - if (!mouse && State == SHOWMATCH) - return SHAPE_IDX_SM; - if (State & VREPLACE_FLAG) - return SHAPE_IDX_R; - if (State & REPLACE_FLAG) - return SHAPE_IDX_R; - if (State & INSERT) - return SHAPE_IDX_I; - if (State & CMDLINE) { - if (cmdline_at_end()) - return SHAPE_IDX_C; - if (cmdline_overstrike()) - return SHAPE_IDX_CR; - return SHAPE_IDX_CI; - } - if (finish_op) - return SHAPE_IDX_O; - if (VIsual_active) { - if (*p_sel == 'e') - return SHAPE_IDX_VE; - else - return SHAPE_IDX_V; - } - return SHAPE_IDX_N; -} diff --git a/src/cursor_shape.h b/src/cursor_shape.h index 17a7025b68..33a120e1c4 100644 --- a/src/cursor_shape.h +++ b/src/cursor_shape.h @@ -48,6 +48,5 @@ typedef struct cursor_entry { } cursorentry_T; char_u *parse_shape_opt(int what); -int get_shape_idx(int mouse); #endif /* NEOVIM_CURSOR_SHAPE_H */ |