Mercurial > vim
diff src/ex_cmds.c @ 2254:4620acaf4814 vim73
One more fix for conceal patch.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 06 Jun 2010 17:41:24 +0200 |
parents | 12ebd6f6dfce |
children | 941ff1cd317a |
line wrap: on
line diff
--- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -3571,9 +3571,6 @@ do_ecmd(fnum, ffname, sfname, eap, newln 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. */ @@ -3618,6 +3615,10 @@ do_ecmd(fnum, ffname, sfname, eap, newln */ check_arg_idx(curwin); +#ifdef FEAT_SYN_HL + reset_synblock(curwin); /* remove any ownsyntax */ +#endif + #ifdef FEAT_AUTOCMD if (!auto_buf) #endif