1
0
forked from aniani/vim

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

@@ -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. */