commit | fd29f4628ed53eef3d96a09ad2d0fa504edfcdfc | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Jun 06 16:11:09 2010 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Jun 06 16:11:09 2010 +0200 |
tree | 1a25451b5be6300da150cc4dca280bffe9d523ba | |
parent | 1950c3529b16acd21ee5770b422d633f24d192a3 [diff] [blame] |
Fixed: after ":ownsyntax perl" and ":e" syntax was cleared in other window.
diff --git a/src/buffer.c b/src/buffer.c index cf7ecbb..a6878e6 100644 --- a/src/buffer.c +++ b/src/buffer.c
@@ -1379,12 +1379,7 @@ #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. */