diff options
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 4066f8de9..463d84078 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -3523,12 +3523,14 @@ find_ex_command( return eap->cmd; } - if (p != eap->cmd && ( + if ((p != eap->cmd && ( // "varname[]" is an expression. *p == '[' // "varname.key" is an expression. - || (*p == '.' && (ASCII_ISALPHA(p[1]) - || p[1] == '_')))) + || (*p == '.' + && (ASCII_ISALPHA(p[1]) || p[1] == '_')))) + // g:[key] is an expression + || STRNCMP(eap->cmd, "g:[", 3) == 0) { char_u *after = eap->cmd; |