diff options
author | Thomas Wienecke <wienecke.t@gmail.com> | 2014-04-10 19:01:51 +0200 |
---|---|---|
committer | Thomas Wienecke <wienecke.t@gmail.com> | 2014-05-03 17:41:05 +0200 |
commit | e5d1dd96892dbce79a08157d1715b849cbd91a84 (patch) | |
tree | 071c3fbad0e8f033a0bb38eaac34e3129a68b035 /src/cursor_shape.c | |
parent | a4af779c8def539a1498ba4baf1c7b79f1f35af9 (diff) | |
download | rneovim-e5d1dd96892dbce79a08157d1715b849cbd91a84.tar.gz rneovim-e5d1dd96892dbce79a08157d1715b849cbd91a84.tar.bz2 rneovim-e5d1dd96892dbce79a08157d1715b849cbd91a84.zip |
Remove unused function get_shape_idx.
Diffstat (limited to 'src/cursor_shape.c')
-rw-r--r-- | src/cursor_shape.c | 32 |
1 files changed, 0 insertions, 32 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; -} |