diff options
author | dundargoc <gocdundar@gmail.com> | 2023-12-28 13:42:24 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-12-30 12:45:38 +0100 |
commit | c89292fcb7f2ebf06efb7c1d00c28f34c6f68fec (patch) | |
tree | b1257a572495337ca936c47839bb08aa45528c84 /src/nvim/help.c | |
parent | d634cd5b0bc3ac6bdf285432f74a1c10f12b6031 (diff) | |
download | rneovim-c89292fcb7f2ebf06efb7c1d00c28f34c6f68fec.tar.gz rneovim-c89292fcb7f2ebf06efb7c1d00c28f34c6f68fec.tar.bz2 rneovim-c89292fcb7f2ebf06efb7c1d00c28f34c6f68fec.zip |
refactor: follow style guide
Diffstat (limited to 'src/nvim/help.c')
-rw-r--r-- | src/nvim/help.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/help.c b/src/nvim/help.c index 92807039b3..f1ca249d5d 100644 --- a/src/nvim/help.c +++ b/src/nvim/help.c @@ -171,9 +171,9 @@ void ex_help(exarg_T *eap) // set b_p_ro flag). // Set the alternate file to the previously edited file. alt_fnum = curbuf->b_fnum; - (void)do_ecmd(0, NULL, NULL, NULL, ECMD_LASTL, - ECMD_HIDE + ECMD_SET_HELP, - NULL); // buffer is still open, don't store info + do_ecmd(0, NULL, NULL, NULL, ECMD_LASTL, + ECMD_HIDE + ECMD_SET_HELP, + NULL); // buffer is still open, don't store info if ((cmdmod.cmod_flags & CMOD_KEEPALT) == 0) { curwin->w_alt_fnum = alt_fnum; @@ -251,7 +251,7 @@ char *check_help_lang(char *arg) /// @param wrong_case no matching case /// /// @return a heuristic indicating how well the given string matches. -int help_heuristic(char *matched_string, int offset, int wrong_case) +int help_heuristic(char *matched_string, int offset, bool wrong_case) FUNC_ATTR_PURE { int num_letters = 0; @@ -618,7 +618,7 @@ void prepare_help_buffer(void) if (strcmp(curbuf->b_p_isk, p) != 0) { set_string_option_direct(kOptIskeyword, p, OPT_FREE|OPT_LOCAL, 0); check_buf_options(curbuf); - (void)buf_init_chartab(curbuf, false); + buf_init_chartab(curbuf, false); } // Don't use the global foldmethod. |