summaryrefslogtreecommitdiff
path: root/src/syntax.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-11-19 19:33:16 +0100
committerBram Moolenaar <Bram@vim.org>2014-11-19 19:33:16 +0100
commit2683c8e7f7d8eb6222653d55849a9c556de27f45 (patch)
tree1e1104e9a4bfd19fa02bf3246eba7e657dd3231f /src/syntax.c
parent2f3b510b0f9203d31e2f7f536ebfbcb17766e09e (diff)
downloadvim-git-7.4.524.tar.gz
updated for version 7.4.524v7.4.524
Problem: When using ":ownsyntax" spell checking is messed up. (Issue 78) Solution: Use the window-local option values. (Christian Brabandt)
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/syntax.c b/src/syntax.c
index fcd20c8ac..4f6ef924b 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -6304,11 +6304,10 @@ ex_ownsyntax(eap)
curwin->w_s = (synblock_T *)alloc(sizeof(synblock_T));
memset(curwin->w_s, 0, sizeof(synblock_T));
#ifdef FEAT_SPELL
+ /* TODO: keep the spell checking as it was. */
curwin->w_p_spell = FALSE; /* No spell checking */
clear_string_option(&curwin->w_s->b_p_spc);
clear_string_option(&curwin->w_s->b_p_spf);
- vim_regfree(curwin->w_s->b_cap_prog);
- curwin->w_s->b_cap_prog = NULL;
clear_string_option(&curwin->w_s->b_p_spl);
#endif
}