diff options
author | Dundar Goc <gocdundar@gmail.com> | 2022-05-01 11:18:17 +0200 |
---|---|---|
committer | Dundar Goc <gocdundar@gmail.com> | 2022-05-03 10:33:40 +0200 |
commit | b9bdd0f61e5e7365c07aadbc3f796556b6d85fdf (patch) | |
tree | 807bb0bcb4a551285e7c1f739b1b201d49d58261 /src/nvim/fold.c | |
parent | 46734cf7c1e5abe8e452354db6914364bfe89f0d (diff) | |
download | rneovim-b9bdd0f61e5e7365c07aadbc3f796556b6d85fdf.tar.gz rneovim-b9bdd0f61e5e7365c07aadbc3f796556b6d85fdf.tar.bz2 rneovim-b9bdd0f61e5e7365c07aadbc3f796556b6d85fdf.zip |
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/fold.c')
-rw-r--r-- | src/nvim/fold.c | 6 |
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) { |