diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-07-14 21:05:15 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-07-14 21:05:15 +0000 |
commit | 9c24ccc7b8f70901bbedb177eeb0efc2e84182e8 (patch) | |
tree | 07bc65e8a8a2f06c5e54732753c270962ebc0409 /src/quickfix.c | |
parent | af51e66c5ae4a73f4b05f3feb9bb539431ea2d44 (diff) | |
download | vim-git-9c24ccc7b8f70901bbedb177eeb0efc2e84182e8.tar.gz |
updated for version 7.2b-004v7.2b.004
Diffstat (limited to 'src/quickfix.c')
-rw-r--r-- | src/quickfix.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/quickfix.c b/src/quickfix.c index 6d67dd734..e442fcbd1 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -3779,7 +3779,7 @@ ex_helpgrep(eap) /* Make 'cpoptions' empty, the 'l' flag should not be used here. */ save_cpo = p_cpo; - p_cpo = (char_u *)""; + p_cpo = empty_option; #ifdef FEAT_MULTI_LANG /* Check for a specified language */ @@ -3889,7 +3889,11 @@ ex_helpgrep(eap) qi->qf_lists[qi->qf_curlist].qf_index = 1; } - p_cpo = save_cpo; + if (p_cpo == empty_option) + p_cpo = save_cpo; + else + /* Darn, some plugin changed the value. */ + free_string_option(save_cpo); #ifdef FEAT_WINDOWS qf_update_buffer(qi); |