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

Fix that :py3file was not working.

This commit is contained in:
Bram Moolenaar
2010-07-21 16:00:43 +02:00
parent b8521960d6
commit b65905262b
5 changed files with 15 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
*if_pyth.txt* For Vim version 7.3b. Last change: 2010 Jul 20
*if_pyth.txt* For Vim version 7.3b. Last change: 2010 Jul 21
VIM REFERENCE MANUAL by Paul Moore
@@ -335,7 +335,7 @@ sure edit "gvim.exe" and search for "python\d*.dll\c".
Python 3 support can exist next to Python 2.x.
*:py3* *:py3file*
*:py3* *:python3* *:py3file*
TODO

View File

@@ -1,4 +1,4 @@
*index.txt* For Vim version 7.3b. Last change: 2010 Jul 20
*index.txt* For Vim version 7.3b. Last change: 2010 Jul 21
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1383,7 +1383,8 @@ The commands are sorted on the non-optional part of their name.
|:put| :pu[t] insert contents of register in the text
|:pwd| :pw[d] print current directory
|:py3| :py3 execute Python 3 command
|:p3yfile| :py3f[ile] execute Python 3 script file
|:python3| :python3 same as :py3
|:py3yfile| :py3f[ile] execute Python 3 script file
|:python| :py[thon] execute Python command
|:pyfile| :pyf[ile] execute Python script file
|:quit| :q[uit] quit current window (when one window quit Vim)

View File

@@ -30,6 +30,10 @@ be worked on, but only if you sponsor Vim development. See |sponsor|.
*known-bugs*
-------------------- Known bugs and current work -----------------------
Include patch for horizontal scoll wheel? (Bjorn Winckler, 2010 Jul 20)
Patch for Dynamic loading for Perl. (James Vega, 2010 Jul 20)
Cursor positioning wrong with 0x200e character. (John Becket, 2010 May 6)
Test 69 breaks on MS-Windows, both 32 and 64 builds. (George Reilly, 2010 Feb

View File

@@ -743,6 +743,8 @@ EX(CMD_pyfile, "pyfile", ex_pyfile,
RANGE|FILE1|NEEDARG|CMDWIN),
EX(CMD_py3, "py3", ex_py3,
RANGE|EXTRA|NEEDARG|CMDWIN),
EX(CMD_python3, "python3", ex_py3,
RANGE|EXTRA|NEEDARG|CMDWIN),
EX(CMD_py3file, "py3file", ex_py3file,
RANGE|FILE1|NEEDARG|CMDWIN),
EX(CMD_quit, "quit", ex_quit,

View File

@@ -2563,6 +2563,7 @@ do_one_cmd(cmdlinep, sourcing,
case CMD_psearch:
case CMD_python:
case CMD_py3:
case CMD_python3:
case CMD_return:
case CMD_rightbelow:
case CMD_ruby:
@@ -2825,9 +2826,10 @@ find_command(eap, full)
{
while (ASCII_ISALPHA(*p))
++p;
/* for python 3.x support ":py3" (and ":py4" :-) */
/* for python 3.x support ":py3", ":python3", ":py3file", etc. */
if (eap->cmd[0] == 'p' && eap->cmd[1] == 'y')
p = skipdigits(p);
while (ASCII_ISALNUM(*p))
++p;
/* check for non-alpha command */
if (p == eap->cmd && vim_strchr((char_u *)"@*!=><&~#", *p) != NULL)