updated for version 7.0152
diff --git a/src/edit.c b/src/edit.c
index d9bfb2f..e4370fc 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -3515,6 +3515,7 @@
 		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)