Bug#600688: [patch] Retain langp when re-using buffer

James Vega jamessan at debian.org
Mon Oct 25 05:21:02 UTC 2010


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 <jamessan at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: save-langp.diff
Type: text/x-diff
Size: 519 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20101025/39dd2546/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20101025/39dd2546/attachment.pgp>


More information about the pkg-vim-maintainers mailing list