Advertisement
Guest User

Untitled

a guest
Oct 10th, 2015
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. diff --git a/src/ex_docmd.c b/src/ex_docmd.c
  2. index c3a01df..7509fe0 100644
  3. --- a/src/ex_docmd.c
  4. +++ b/src/ex_docmd.c
  5. @@ -3515,8 +3515,11 @@ set_one_cmd_context(xp, buff)
  6. else
  7. {
  8. p = cmd;
  9. - while (ASCII_ISALPHA(*p) || *p == '*') /* Allow * wild card */
  10. + if (ASCII_ISALPHA(*p) || *p == '*') { /* Allow * wild card */
  11. ++p;
  12. + while (ASCII_ISALNUM(*p) || *p == '*')
  13. + ++p;
  14. + }
  15. /* check for non-alpha command */
  16. if (p == cmd && vim_strchr((char_u *)"@*!=><&~#", *p) != NULL)
  17. ++p;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement