diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-02-20 02:49:19 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-02-20 02:49:19 +0000 |
commit | fa3491a0e0e8c91431583ae18ae9605aac24cc3d (patch) | |
tree | 38a813ba7bf2e331038e394d85884546b0586f3a /src/edit.c | |
parent | 09a16b5f09eaf11d28d8b33cdd6c410c0f40cd5a (diff) |
updated for version 7.0-200v7.0.200
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/edit.c b/src/edit.c index b0e6f45d12..25a76a2792 100644 --- a/src/edit.c +++ b/src/edit.c @@ -2698,6 +2698,7 @@ ins_compl_dictionaries(dict_start, pat, flags, thesaurus) buf = alloc(LSIZE); if (buf == NULL) return; + regmatch.regprog = NULL; /* so that we can goto theend */ /* If 'infercase' is set, don't use 'smartcase' here */ save_p_scs = p_scs; @@ -2712,13 +2713,13 @@ ins_compl_dictionaries(dict_start, pat, flags, thesaurus) char_u *pat_esc = vim_strsave_escaped(pat, (char_u *)"\\"); if (pat_esc == NULL) - return ; + goto theend ; i = (int)STRLEN(pat_esc) + 10; ptr = alloc(i); if (ptr == NULL) { vim_free(pat_esc); - return; + goto theend; } vim_snprintf((char *)ptr, i, "^\\s*\\zs\\V%s", pat_esc); regmatch.regprog = vim_regcomp(ptr, RE_MAGIC); |