Hi lilydjwg,
2016-1-17(Sun) 21:41:29 UTC+9 依云:
> On Sun, Jan 17, 2016 at 02:48:18AM -0800, h_east wrote:
> > Hi lilydjwg,
> >
> > [...]
> >
> > I reproduce it.
> > Please confirm attached patch.
>
> This patch breaks a lot of plugins for me, because the following will
> throw errors:
>
> LANGUAGE=en src/vim -u NONE -N
> :let g:a = {}
> :let g:b = 't'
> :let g:a[g:b] = 1
>
> E716: Key not present in Dictionary: t
> E488: Trailing characters
Oh..
Thank you for your pointing out.
I fixed a patch.
Please re-confirm this.
--
Best regards,
Hirohito Higashi (a.k.a h_east)
--
--
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/d/optout.
diff --git a/src/eval.c b/src/eval.c
index c61b64d..0d61a60 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -20805,7 +20805,6 @@ find_name_end(arg, expr_start, expr_end, flags)
int mb_nest = 0;
int br_nest = 0;
char_u *p;
- int len;
if (expr_start != NULL)
{
@@ -20841,15 +20840,6 @@ find_name_end(arg, expr_start, expr_end, flags)
if (*p == NUL)
break;
}
- else if (br_nest == 0 && mb_nest == 0 && *p == ':')
- {
- /* "s:" is start of "s:var", but "n:" is not and can be used in
- * slice "[n:]". Also "xx:" is not a namespace. */
- len = (int)(p - arg);
- if ((len == 1 && vim_strchr(NAMESPACE_CHAR, *arg) == NULL)
- || len > 1)
- break;
- }
if (mb_nest == 0)
{