proteanthread / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

Spelling not updated after 'spellfile' change #221

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When activating 'spell' and afterwards updating 'spellfile', the content of the 
current screen is not updated. After updating the screen manually (using 
Ctrl+L), the newly added and/or removed words are highlighted correctly.

I think it would make sense to automatically refresh the screen after the 
spellfile is updated, as it could always result in a change of the known words 
(except the changed spellfile is empty).

I am currently working on Windows 7 64 bit, with the latest official gVim 7.4 
from 10th of August 2013.

Original issue reported on code.google.com by walder...@gmx.net on 22 Apr 2014 at 7:43

GoogleCodeExporter commented 9 years ago
Here is a patch:

diff --git a/src/option.c b/src/option.c
--- a/src/option.c
+++ b/src/option.c
@@ -6673,6 +6673,7 @@ did_set_string_option(opt_idx, varp, new
                if (wp->w_buffer == curbuf && wp->w_p_spell)
                {
                    errmsg = did_set_spelllang(wp);
+                   redraw_later(NOT_VALID);
 # ifdef FEAT_WINDOWS
                    break;
 # endif

Original comment by chrisbr...@googlemail.com on 30 Apr 2014 at 2:41

GoogleCodeExporter commented 9 years ago
fixed by 7.4.288

Original comment by chrisbr...@googlemail.com on 2 Oct 2014 at 7:52