summaryrefslogtreecommitdiff
path: root/src/edit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c
index d9bfb2fb0..e4370fcc2 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -3515,6 +3515,7 @@ ins_complete(c)
compl_col = spell_word_start(startcol);
if (compl_col >= (colnr_T)startcol)
return FAIL;
+ spell_expand_check_cap(compl_col);
compl_length = (int)curs_col - compl_col;
compl_pattern = vim_strnsave(line + compl_col, compl_length);
if (compl_pattern == NULL)