aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fold.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/fold.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/fold.c')
-rw-r--r--src/nvim/fold.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/fold.c b/src/nvim/fold.c
index 24f088e06f..090f754e93 100644
--- a/src/nvim/fold.c
+++ b/src/nvim/fold.c
@@ -2911,7 +2911,7 @@ static void foldlevelIndent(fline_T *flp)
// empty line or lines starting with a character in 'foldignore': level
// depends on surrounding lines
- if (*s == NUL || vim_strchr(flp->wp->w_p_fdi, *s) != NULL) {
+ if (*s == NUL || vim_strchr((char *)flp->wp->w_p_fdi, *s) != NULL) {
// first and last line can't be undefined, use level 0
if (lnum == 1 || lnum == buf->b_ml.ml_line_count) {
flp->lvl = 0;
@@ -3042,7 +3042,7 @@ static void foldlevelExpr(fline_T *flp)
/// Relies on the option value to have been checked for correctness already.
static void parseMarker(win_T *wp)
{
- foldendmarker = vim_strchr(wp->w_p_fmr, ',');
+ foldendmarker = (char_u *)vim_strchr((char *)wp->w_p_fmr, ',');
foldstartmarkerlen = (size_t)(foldendmarker++ - wp->w_p_fmr);
foldendmarkerlen = STRLEN(foldendmarker);
}