aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/spell.c2
1 files changed, 1 insertions, 1 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);