Bram,
the help states:
,----
| When ":colder" has been used and ":make" or ":grep" is used to add a new error
| list, one newer list is overwritten. This is especially useful if you are
| browsing with ":grep" |grep|. If you want to keep the more recent error
| lists, use ":cnewer 99" first.
`----
Suppose you have 4 error lists and errorlist 1 is displayed. When using
:cnewer 99, you'll get Error E381 and the errorlist isn't updated. You
seem to be still in error list 1, although you are actually in the last
error list.
You'll only notice that you are actually in another error list by
pressing Enter on it and it will jump to the error of the errorlist that
isn't displayed. (Also :cclose followed by :copen updates the errorlist
correctly and works around the issue).
Here is a patch, that fixes the issue, by making sure, the error list is
updated even if an error occured.
regards,
Christian
--
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
diff --git a/src/quickfix.c b/src/quickfix.c
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -2085,7 +2085,7 @@
if (qi->qf_curlist == 0)
{
EMSG(_("E380: At bottom of quickfix stack"));
- return;
+ break;
}
--qi->qf_curlist;
}
@@ -2094,7 +2094,7 @@
if (qi->qf_curlist >= qi->qf_listcount - 1)
{
EMSG(_("E381: At top of quickfix stack"));
- return;
+ break;
}
++qi->qf_curlist;
}