summaryrefslogtreecommitdiff
path: root/src/if_python.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-02-18 22:04:56 +0100
committerBram Moolenaar <Bram@vim.org>2019-02-18 22:04:56 +0100
commit14816ad6e58336773443f5ee2e4aa9e384af65d2 (patch)
treef53327ad0ffed33997cf4bbe9ce4725cb2221980 /src/if_python.c
parent0472b6d149445579e3a63519b15f099f9adda3f7 (diff)
downloadvim-git-14816ad6e58336773443f5ee2e4aa9e384af65d2.tar.gz
patch 8.1.0950: using :python sets 'pyxversion' even when not executedv8.1.0950
Problem: Using :python sets 'pyxversion' even when not executed. Solution: Check the "skip" flag. (Shane Harper, closes #3995)
Diffstat (limited to 'src/if_python.c')
-rw-r--r--src/if_python.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/if_python.c b/src/if_python.c
index 06c46bc37..c0a3fe105 100644
--- a/src/if_python.c
+++ b/src/if_python.c
@@ -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,