summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-06-06 17:41:24 +0200
committerBram Moolenaar <Bram@vim.org>2010-06-06 17:41:24 +0200
commitdebe25a2a58f32a8301765c8c503c457ced3965d (patch)
treea2ca6803dc2f03e67bdf322dba6530d786284c63 /src/ex_cmds.c
parentfd29f4628ed53eef3d96a09ad2d0fa504edfcdfc (diff)
One more fix for conceal patch.
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 2ffaa3e217..53dc0adf38 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -3571,9 +3571,6 @@ 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. */
@@ -3618,6 +3615,10 @@ do_ecmd(fnum, ffname, sfname, eap, newlnum, flags, oldwin)
*/
check_arg_idx(curwin);
+#ifdef FEAT_SYN_HL
+ reset_synblock(curwin); /* remove any ownsyntax */
+#endif
+
#ifdef FEAT_AUTOCMD
if (!auto_buf)
#endif