mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
Fixed: after ":ownsyntax perl" and ":e" syntax was cleared in other window.
This commit is contained in:
@@ -3571,6 +3571,9 @@ do_ecmd(fnum, ffname, sfname, eap, newlnum, flags, oldwin)
|
||||
new_name = NULL;
|
||||
#endif
|
||||
buf_freeall(curbuf, FALSE, FALSE); /* free all things for buffer */
|
||||
#ifdef FEAT_SYN_HL
|
||||
reset_synblock(curwin); /* remove any ownsyntax */
|
||||
#endif
|
||||
#ifdef FEAT_AUTOCMD
|
||||
/* If autocommands deleted the buffer we were going to re-edit, give
|
||||
* up and jump to the end. */
|
||||
|
Reference in New Issue
Block a user