aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/buffer.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2021-10-12 17:52:54 +0200
committerGitHub <noreply@github.com>2021-10-12 17:52:54 +0200
commit649b3160a10f0053747383f0703b0a5a94548570 (patch)
tree2898b7213ab1349717c360c8d7561a4606f3c8c2 /src/nvim/api/buffer.c
parent64f0fdc6822db4fc1ef5fadb892aab5bf04e75a7 (diff)
downloadrneovim-649b3160a10f0053747383f0703b0a5a94548570.tar.gz
rneovim-649b3160a10f0053747383f0703b0a5a94548570.tar.bz2
rneovim-649b3160a10f0053747383f0703b0a5a94548570.zip
refactor: reduce number of unique char casts (#15995)
Diffstat (limited to 'src/nvim/api/buffer.c')
-rw-r--r--src/nvim/api/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c
index 3a38a14cdd..31d44c68bf 100644
--- a/src/nvim/api/buffer.c
+++ b/src/nvim/api/buffer.c
@@ -1903,7 +1903,7 @@ Integer nvim_buf_add_highlight(Buffer buffer, Integer ns_id, String hl_group, In
int hl_id = 0;
if (hl_group.size > 0) {
- hl_id = syn_check_group((char_u *)hl_group.data, (int)hl_group.size);
+ hl_id = syn_check_group(hl_group.data, (int)hl_group.size);
} else {
return ns_id;
}