diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-05-14 18:10:27 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-05-14 18:10:27 +0200 |
commit | f9ddb94283148020cab6ce74cbbdda59ab53e4ac (patch) | |
tree | 2b375284963c93d54111280dd314bd1cb3978e62 /src/quickfix.c | |
parent | 9dbe4758b1c2333c00e554d54767fbca35880201 (diff) | |
download | vim-git-f9ddb94283148020cab6ce74cbbdda59ab53e4ac.tar.gz |
updated for version 7.2.428v7.2.428
Problem: Using setqflist([]) to clear the error list doesn't work properly.
Solution: Set qf_nonevalid to TRUE when appropriate. (Christian Brabandt)
Diffstat (limited to 'src/quickfix.c')
-rw-r--r-- | src/quickfix.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/quickfix.c b/src/quickfix.c index 8537a7c5a..8fef225e9 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -3654,7 +3654,11 @@ set_errorlist(wp, list, action) } } - qi->qf_lists[qi->qf_curlist].qf_nonevalid = FALSE; + if (qi->qf_lists[qi->qf_curlist].qf_index == 0) + /* empty list or no valid entry */ + qi->qf_lists[qi->qf_curlist].qf_nonevalid = TRUE; + else + qi->qf_lists[qi->qf_curlist].qf_nonevalid = FALSE; qi->qf_lists[qi->qf_curlist].qf_ptr = qi->qf_lists[qi->qf_curlist].qf_start; qi->qf_lists[qi->qf_curlist].qf_index = 1; |