mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.1.0950: using :python sets 'pyxversion' even when not executed
Problem: Using :python sets 'pyxversion' even when not executed. Solution: Check the "skip" flag. (Shane Harper, closes #3995)
This commit is contained in:
@@ -1109,12 +1109,12 @@ ex_python(exarg_T *eap)
|
||||
{
|
||||
char_u *script;
|
||||
|
||||
if (p_pyx == 0)
|
||||
p_pyx = 2;
|
||||
|
||||
script = script_get(eap, eap->arg);
|
||||
if (!eap->skip)
|
||||
{
|
||||
if (p_pyx == 0)
|
||||
p_pyx = 2;
|
||||
|
||||
DoPyCommand(script == NULL ? (char *) eap->arg : (char *) script,
|
||||
(rangeinitializer) init_range_cmd,
|
||||
(runner) run_cmd,
|
||||
|
Reference in New Issue
Block a user