aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-10-14 23:48:42 +0200
committerGitHub <noreply@github.com>2021-10-14 23:48:42 +0200
commit5fd4557573c73a6b41b702b1ee39151b5bd7e5fd (patch)
treea61420011ff628034dbe33cdcc160d7eed6a94f7 /src/nvim/option.c
parent88e16a7f30b23c03c2207086f613190e685a67c3 (diff)
parent24a1880866b1b7f6cb74b7ac4fe9fbecd678bbe1 (diff)
downloadrneovim-5fd4557573c73a6b41b702b1ee39151b5bd7e5fd.tar.gz
rneovim-5fd4557573c73a6b41b702b1ee39151b5bd7e5fd.tar.bz2
rneovim-5fd4557573c73a6b41b702b1ee39151b5bd7e5fd.zip
Merge pull request #16014 from dundargoc/refactor/reduce-char-casts
refactor: reduce number of unique char casts
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index b766ae92cf..659e16268b 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -2072,9 +2072,9 @@ static void check_string_option(char_u **pp)
/// Return true when option "opt" was set from a modeline or in secure mode.
/// Return false when it wasn't.
/// Return -1 for an unknown option.
-int was_set_insecurely(win_T *const wp, char_u *opt, int opt_flags)
+int was_set_insecurely(win_T *const wp, char *opt, int opt_flags)
{
- int idx = findoption((const char *)opt);
+ int idx = findoption(opt);
if (idx >= 0) {
uint32_t *flagp = insecure_flag(wp, idx, opt_flags);
@@ -3288,7 +3288,7 @@ ambw_end:
if (p > q) {
vim_snprintf((char *)fname, sizeof(fname), "spell/%.*s.vim",
(int)(p - q), q);
- source_runtime(fname, DIP_ALL);
+ source_runtime((char *)fname, DIP_ALL);
}
}
}