diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2021-10-12 17:52:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-12 17:52:54 +0200 |
commit | 649b3160a10f0053747383f0703b0a5a94548570 (patch) | |
tree | 2898b7213ab1349717c360c8d7561a4606f3c8c2 /src/nvim/cursor_shape.c | |
parent | 64f0fdc6822db4fc1ef5fadb892aab5bf04e75a7 (diff) | |
download | rneovim-649b3160a10f0053747383f0703b0a5a94548570.tar.gz rneovim-649b3160a10f0053747383f0703b0a5a94548570.tar.bz2 rneovim-649b3160a10f0053747383f0703b0a5a94548570.zip |
refactor: reduce number of unique char casts (#15995)
Diffstat (limited to 'src/nvim/cursor_shape.c')
-rw-r--r-- | src/nvim/cursor_shape.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/cursor_shape.c b/src/nvim/cursor_shape.c index 128bc480da..18cade1052 100644 --- a/src/nvim/cursor_shape.c +++ b/src/nvim/cursor_shape.c @@ -230,12 +230,11 @@ char_u *parse_shape_opt(int what) slashp = vim_strchr(p, '/'); if (slashp != NULL && slashp < endp) { // "group/langmap_group" - i = syn_check_group(p, (int)(slashp - p)); + i = syn_check_group((char *)p, (int)(slashp - p)); p = slashp + 1; } if (round == 2) { - shape_table[idx].id = syn_check_group(p, - (int)(endp - p)); + shape_table[idx].id = syn_check_group((char *)p, (int)(endp - p)); shape_table[idx].id_lm = shape_table[idx].id; if (slashp != NULL && slashp < endp) { shape_table[idx].id = i; |