diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-06-06 16:11:09 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-06-06 16:11:09 +0200 |
commit | fd29f4628ed53eef3d96a09ad2d0fa504edfcdfc (patch) | |
tree | 1a25451b5be6300da150cc4dca280bffe9d523ba /src/buffer.c | |
parent | 1950c3529b16acd21ee5770b422d633f24d192a3 (diff) | |
download | vim-git-fd29f4628ed53eef3d96a09ad2d0fa504edfcdfc.tar.gz |
Fixed: after ":ownsyntax perl" and ":e" syntax was cleared in other window.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/buffer.c b/src/buffer.c index cf7ecbbe9..a6878e6cd 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1379,12 +1379,7 @@ enter_buffer(buf) #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. */ |