Your message dated Mon, 25 Oct 2010 01:21:02 -0400
with message-id <[email protected]>
has caused the report #600688,
regarding vim: Spell check disabled after a tag request first command
to be marked as having been forwarded to the upstream software
author(s) Bram Moolenaar <[email protected]>
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
600688: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=600688
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Bram,
Patch 7.2.034 introduced a bug which causes spell highlighting not to
work when an empty buffer gets re-used when a file is loaded. A simple
test case is:
$ vim -u NONE -N -c 'syn on' -c 'set spell'
:e src/os_win32.c
As you can see, none of the unknown words are highlighted as spelling
mistakes although they are if you give the file on the command line
instead.
The attached patch looks like the right fix.
Thanks,
--
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]>
diff --git a/src/buffer.c b/src/buffer.c
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -639,6 +639,9 @@
{
clear_wininfo(buf); /* including window-local options */
free_buf_options(buf, TRUE);
+#ifdef FEAT_SPELL
+ ga_clear(&buf->b_s.b_langp);
+#endif
}
#ifdef FEAT_EVAL
vars_clear(&buf->b_vars.dv_hashtab); /* free all internal variables */
@@ -661,9 +664,6 @@
vim_free(buf->b_start_fenc);
buf->b_start_fenc = NULL;
#endif
-#ifdef FEAT_SPELL
- ga_clear(&buf->b_s.b_langp);
-#endif
}
/*
signature.asc
Description: Digital signature
--- End Message ---