Anton Lindqvist wrote:
> Hi,
> I'm using manual syntax highlighting and discovered a bug when moving between
> buffers. How to reproduce:
>
> 1. Create files:
>
> $ cat >vimrc <<!
> filetype on
> syntax manual
> !
>
> $ cat >1.vim <<!
> echo 1
> !
>
> $ cat >2.vim <<!
> echo 2
> !
>
> 2. Run Vim:
>
> $ vim -N -u vimrc 1.vim 2.vim
>
> 3. Enable syntax in the current buffer:
>
> :set syntax=ON
>
> 4. Move to the next buffer and then back again:
>
> :bn | bp
>
> 5. The syntax option is still enabled in the current buffer but no syntax
> highlighting is performed.
>
> The attached patch solves this issue by setting the syntax option when
> the FileType event is triggered.
Thanks. Looks like this will work for all situations.
--
hundred-and-one symptoms of being an internet addict:
98. The Alta Vista administrators ask you what sites are missing
in their index files.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.