> > This patch changes the default title (?) from ":setloclist()" to
> > "setloclist()".
> The reason for leaving out the colon was so that it wouldn't confuse the
> user and will not leave the impression, that there exists a :setloclist
> ex command. But note, that I don't have a strong feeling about it
> anyhow.
I have updated the patch to use the old default titles, as mentioned earlier:
diff --git a/src/eval.c b/src/eval.c
index 2f7da3d..b366223 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -16733,7 +16733,7 @@ set_qf_ll_list(wp, list_arg, action_arg, title_arg, rettv)
return; /* type error; errmsg already given */
}
if (title == NULL)
- title = (char_u*)(wp == NULL ? "setqflist()" : "setloclist()");
+ title = (char_u*)(wp == NULL ? ":setqflist()" : ":setloclist()");
if (l != NULL && set_errorlist(wp, l, action, title) == OK)
rettv->vval.v_number = 0;
FWIW, I have created a branch (based on a Git mirror) to track this patch:
https://github.com/blueyed/vim/compare/setqflist_title
The patch can be seen also by adding ".patch" to the URL:
https://github.com/blueyed/vim/compare/setqflist_title.patch
It would be nice to get it applied/included finally.
Regards,
Daniel.
https://github.com/blueyed/vim/compare/setqflist_title_2
The patch can be seen also by adding ".patch" to the URL:
https://github.com/blueyed/vim/compare/setqflist_title_2.patch
It did not apply cleanly anymore and after fixing the conflict, "test10" was failing: there were two colons instead of one in the quickfix title ("::cf" vs. ":cf").
This patch is shorter than the previous one, mainly because the handling of ":" gets done in a central place now, and it has been removed from `ex_make` etc.
Regards,
Daniel.
> Thanks for the update. You did fix the failing test, right?
Yes, although I did not fix the failing test, but the patch.
I would appreciate to get feedback from Christian on this new patch.
Regards,
Daniel.
I've also moved the handling of "quickfix_title" to the bottom of "setwinvar", to also handle cases where "&foo" gets set - I am not sure if that makes sense.
I am attaching the refreshed patch again.
Thank you very much!
That's interesting! I don't actually see that anywhere in the documentation. Is that an undocumented feature?
-- Jason
--
--
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 a topic in the Google Groups "vim_dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_dev/X7VVPd4Do5s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.