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:
@@ -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. */
|
||||
|
Reference in New Issue
Block a user