0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

Fixed: after ":ownsyntax perl" and ":e" syntax was cleared in other window.

This commit is contained in:
Bram Moolenaar
2010-06-06 16:11:09 +02:00
parent 1950c3529b
commit fd29f4628e
6 changed files with 32 additions and 18 deletions

View File

@@ -1379,12 +1379,7 @@ enter_buffer(buf)
#endif
#ifdef FEAT_SYN_HL
if (curwin->w_s != &curwin->w_buffer->b_s)
{
/* Get rid of independant syntax */
syntax_clear(curwin->w_s);
vim_free(curwin->w_s);
}
reset_synblock(curwin);
curwin->w_s = &(buf->b_s);
#endif
/* Get the buffer in the current window. */