aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fold.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-05-03 11:02:04 +0200
committerGitHub <noreply@github.com>2022-05-03 11:02:04 +0200
commit8ea84eee570fd1ec560fe149e611d10034d9a223 (patch)
tree807bb0bcb4a551285e7c1f739b1b201d49d58261 /src/nvim/fold.c
parent46734cf7c1e5abe8e452354db6914364bfe89f0d (diff)
parentb9bdd0f61e5e7365c07aadbc3f796556b6d85fdf (diff)
downloadrneovim-8ea84eee570fd1ec560fe149e611d10034d9a223.tar.gz
rneovim-8ea84eee570fd1ec560fe149e611d10034d9a223.tar.bz2
rneovim-8ea84eee570fd1ec560fe149e611d10034d9a223.zip
Merge pull request #18345 from dundargoc/refactor/remove-char_u
refactor: replace char_u variables and functions with char
Diffstat (limited to 'src/nvim/fold.c')
-rw-r--r--src/nvim/fold.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/fold.c b/src/nvim/fold.c
index ef2987d1ab..af7288e103 100644
--- a/src/nvim/fold.c
+++ b/src/nvim/fold.c
@@ -1774,7 +1774,9 @@ char_u *get_foldtext(win_T *wp, linenr_T lnum, linenr_T lnume, foldinfo_T foldin
curbuf = wp->w_buffer;
emsg_silent++; // handle exceptions, but don't display errors
- text = eval_to_string_safe(wp->w_p_fdt, NULL, was_set_insecurely(wp, "foldtext", OPT_LOCAL));
+ text =
+ (char_u *)eval_to_string_safe((char *)wp->w_p_fdt, NULL,
+ was_set_insecurely(wp, "foldtext", OPT_LOCAL));
emsg_silent--;
if (text == NULL || did_emsg) {
@@ -2962,7 +2964,7 @@ static void foldlevelExpr(fline_T *flp)
// KeyTyped may be reset to 0 when calling a function which invokes
// do_cmdline(). To make 'foldopen' work correctly restore KeyTyped.
const bool save_keytyped = KeyTyped;
- const int n = eval_foldexpr(flp->wp->w_p_fde, &c);
+ const int n = eval_foldexpr((char *)flp->wp->w_p_fde, &c);
KeyTyped = save_keytyped;
switch (c) {