Mercurial > vim
changeset 5545:4bf53c1ef37a v7.4.121
updated for version 7.4.121
Problem: Completion doesn't work for ":py3d" and ":py3f". (Bohr Shaw)
Solution: Skip over letters after ":py3".
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 11 Dec 2013 17:44:38 +0100 |
parents | 9e96db217084 |
children | e7c8e1c2aa18 |
files | src/ex_docmd.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -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)