diff options
-rw-r--r-- | src/nvim/spell.c | 2 | ||||
-rw-r--r-- | test/old/testdir/test_spell.vim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c index 9ae2036ee0..5a1b3f1965 100644 --- a/src/nvim/spell.c +++ b/src/nvim/spell.c @@ -2606,7 +2606,7 @@ void ex_spellrepall(exarg_T *eap) } const size_t repl_from_len = strlen(repl_from); const size_t repl_to_len = strlen(repl_to); - int addlen = (int)(repl_to_len - repl_from_len); + const int addlen = (int)(repl_to_len - repl_from_len); const size_t frompatlen = repl_from_len + 7; char *frompat = xmalloc(frompatlen); diff --git a/test/old/testdir/test_spell.vim b/test/old/testdir/test_spell.vim index 59b433d6e1..7576e57c3f 100644 --- a/test/old/testdir/test_spell.vim +++ b/test/old/testdir/test_spell.vim @@ -281,7 +281,7 @@ func Test_compl_with_CTRL_X_CTRL_K_using_spell() set spell& spelllang& dictionary& ignorecase& endfunc -func Test_spellreall() +func Test_spellrepall() new set spell call assert_fails('spellrepall', 'E752:') |