aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/cursor_shape.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-05-16 14:24:29 +0200
committerGitHub <noreply@github.com>2022-05-16 14:24:29 +0200
commitb9b5577d6d8e07d1e39020c8fc05f817f2e81c66 (patch)
tree0d4b5f8b4db1ad7b4cd6d93c89d149e9e2d84570 /src/nvim/cursor_shape.c
parent14d653b421d3ee4e0d641e45e67dafe43809e502 (diff)
parentf0148de7907ec297647816d51c79745be729439e (diff)
downloadrneovim-b9b5577d6d8e07d1e39020c8fc05f817f2e81c66.tar.gz
rneovim-b9b5577d6d8e07d1e39020c8fc05f817f2e81c66.tar.bz2
rneovim-b9b5577d6d8e07d1e39020c8fc05f817f2e81c66.zip
Merge pull request #18578 from dundargoc/refactor/remove-char_u
refactor: remove char_u
Diffstat (limited to 'src/nvim/cursor_shape.c')
-rw-r--r--src/nvim/cursor_shape.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/cursor_shape.c b/src/nvim/cursor_shape.c
index 2a2b4588b9..b69505d7c9 100644
--- a/src/nvim/cursor_shape.c
+++ b/src/nvim/cursor_shape.c
@@ -120,8 +120,8 @@ char *parse_shape_opt(int what)
// Repeat for all comma separated parts.
char *modep = (char *)p_guicursor;
while (modep != NULL && *modep != NUL) {
- colonp = (char *)vim_strchr((char_u *)modep, ':');
- commap = (char *)vim_strchr((char_u *)modep, ',');
+ colonp = vim_strchr(modep, ':');
+ commap = vim_strchr(modep, ',');
if (colonp == NULL || (commap != NULL && commap < colonp)) {
return N_("E545: Missing colon");
@@ -215,7 +215,7 @@ char *parse_shape_opt(int what)
}
p += 5;
} else { // must be a highlight group name then
- endp = (char *)vim_strchr((char_u *)p, '-');
+ endp = vim_strchr(p, '-');
if (commap == NULL) { // last part
if (endp == NULL) {
endp = p + STRLEN(p); // find end of part
@@ -223,7 +223,7 @@ char *parse_shape_opt(int what)
} else if (endp > commap || endp == NULL) {
endp = commap;
}
- slashp = (char *)vim_strchr((char_u *)p, '/');
+ slashp = vim_strchr(p, '/');
if (slashp != NULL && slashp < endp) {
// "group/langmap_group"
i = syn_check_group(p, (size_t)(slashp - p));