E64 in :help completion.

40 views
Skip to first unread message

mattn

unread,
Sep 4, 2012, 8:22:40 AM9/4/12
to vim...@googlegroups.com
Hi.

Try to type following into command line.

:help \{-

And type <tab>. You'll see error message, and you'll see broken command line.

:help E64

The words should be kept on the command line after displaying E64.
Below is a patch.

https://gist.github.com/3620707

diff -r c0ac5ba66243 src/tag.c
--- a/src/tag.c Wed Aug 29 18:50:54 2012 +0200
+++ b/src/tag.c Tue Sep 04 21:21:09 2012 +0900
@@ -1443,6 +1443,10 @@
orgpat.len = p_tl;

prepare_pats(&orgpat, has_re);
+ if (did_emsg) {
+ did_emsg = FALSE;
+ goto findtag_end;
+ }

#ifdef FEAT_TAG_BINS
/* This is only to avoid a compiler warning for using search_info

Bram Moolenaar

unread,
Sep 5, 2012, 9:02:43 AM9/5/12
to mattn, vim...@googlegroups.com

Yasuhiro Matsumoto wrote:

> Try to type following into command line.
>
> :help \{-
>
> And type <tab>. You'll see error message, and you'll see broken command line.
>
> :help E64
>
> The words should be kept on the command line after displaying E64.
> Below is a patch.
>
> https://gist.github.com/3620707

Thanks. However, I think it's better to check if regprog is NULL.

And we also need to avoid the error.


--
A real patriot is the fellow who gets a parking ticket and rejoices
that the system works.


/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages