summaryrefslogtreecommitdiff
path: root/src/if_python3.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_python3.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_python3.c')
-rw-r--r--src/if_python3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/if_python3.c b/src/if_python3.c
index 8b4bee9f7..3c6ee15e3 100644
--- a/src/if_python3.c
+++ b/src/if_python3.c
@@ -1010,12 +1010,12 @@ ex_py3(exarg_T *eap)
{
char_u *script;
- if (p_pyx == 0)
- p_pyx = 3;
-
script = script_get(eap, eap->arg);
if (!eap->skip)
{
+ if (p_pyx == 0)
+ p_pyx = 3;
+
DoPyCommand(script == NULL ? (char *) eap->arg : (char *) script,
(rangeinitializer) init_range_cmd,
(runner) run_cmd,