1
0
forked from aniani/vim

updated for version 7.3.617

Problem:    Hang on completion.
Solution:   Skip over the space. (Yasuhiro Matsumoto)
This commit is contained in:
Bram Moolenaar
2012-07-27 21:12:07 +02:00
parent dad937f77f
commit a07c831bef
2 changed files with 5 additions and 8 deletions

View File

@@ -3837,16 +3837,11 @@ set_one_cmd_context(xp, buff)
while (*p)
{
if (*p == ' ')
{
/* argument starts after a space */
arg = p + 1;
}
else
{
if (*p == '\\' && *(p + 1) != NUL)
++p; /* skip over escaped character */
mb_ptr_adv(p);
}
else if (*p == '\\' && *(p + 1) != NUL)
++p; /* skip over escaped character */
mb_ptr_adv(p);
}
xp->xp_pattern = arg;
}