diff options
author | Bram Moolenaar <bram@zimbu.org> | 2010-05-14 18:10:27 +0200 |
---|---|---|
committer | Bram Moolenaar <bram@zimbu.org> | 2010-05-14 18:10:27 +0200 |
commit | d334bff2e2c212da9f04aa843417f860d55dc208 (patch) | |
tree | 6c0ce677f49946790425beb094602de6011db7c8 | |
parent | d2dcb2a92833f9bbf0402fa1587583f7d72984d3 (diff) | |
download | vim-d334bff2e2c212da9f04aa843417f860d55dc208.tar.gz |
Problem: Using setqflist([]) to clear the error list doesn't work properly.
Solution: Set qf_nonevalid to TRUE when appropriate. (Christian Brabandt)
-rw-r--r-- | src/quickfix.c | 6 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/quickfix.c b/src/quickfix.c index 8537a7c5..8fef225e 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; diff --git a/src/version.c b/src/version.c index 8d8770ef..499bc472 100644 --- a/src/version.c +++ b/src/version.c @@ -682,6 +682,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 428, +/**/ 427, /**/ 426, |