Mercurial > vim
changeset 4710:1c5da99d1b70 v7.3.1102
updated for version 7.3.1102
Problem: Completion of ":py3do" and ":py3file" does not work after ":py3".
Solution: Make completion work. (Taro Muraoka)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 02 Jun 2013 19:22:13 +0200 |
parents | 2c9dd3d10961 |
children | 515ce0356f88 |
files | src/ex_docmd.c src/version.c |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -3249,6 +3249,9 @@ set_one_cmd_context(xp, buff) /* check for non-alpha command */ if (p == cmd && vim_strchr((char_u *)"@*!=><&~#", *p) != NULL) ++p; + /* for python 3.x: ":py3*" commands completion */ + if (cmd[0] == 'p' && cmd[1] == 'y' && p == cmd + 2 && *p == '3') + ++p; len = (int)(p - cmd); if (len == 0)