0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

updated for version 7.4.121

Problem:    Completion doesn't work for ":py3d" and ":py3f". (Bohr Shaw)
Solution:   Skip over letters after ":py3".
This commit is contained in:
Bram Moolenaar
2013-12-11 17:44:38 +01:00
parent fcf94d3990
commit 893b2d73d1
2 changed files with 6 additions and 0 deletions

View File

@@ -3261,7 +3261,11 @@ set_one_cmd_context(xp, buff)
++p;
/* for python 3.x: ":py3*" commands completion */
if (cmd[0] == 'p' && cmd[1] == 'y' && p == cmd + 2 && *p == '3')
{
++p;
while (ASCII_ISALPHA(*p) || *p == '*')
++p;
}
len = (int)(p - cmd);
if (len == 0)