Mercurial > vim
comparison src/if_python3.c @ 15888:a83c4b1f8ea2 v8.1.0950
patch 8.1.0950: using :python sets 'pyxversion' even when not executed
commit https://github.com/vim/vim/commit/14816ad6e58336773443f5ee2e4aa9e384af65d2
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Feb 18 22:04:56 2019 +0100
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 https://github.com/vim/vim/issues/3995)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 18 Feb 2019 22:15:07 +0100 |
parents | 7fad90423bd2 |
children | 6694659c6ad6 |
comparison
equal
deleted
inserted
replaced
15887:071f1cac190b | 15888:a83c4b1f8ea2 |
---|---|
1008 void | 1008 void |
1009 ex_py3(exarg_T *eap) | 1009 ex_py3(exarg_T *eap) |
1010 { | 1010 { |
1011 char_u *script; | 1011 char_u *script; |
1012 | 1012 |
1013 if (p_pyx == 0) | |
1014 p_pyx = 3; | |
1015 | |
1016 script = script_get(eap, eap->arg); | 1013 script = script_get(eap, eap->arg); |
1017 if (!eap->skip) | 1014 if (!eap->skip) |
1018 { | 1015 { |
1016 if (p_pyx == 0) | |
1017 p_pyx = 3; | |
1018 | |
1019 DoPyCommand(script == NULL ? (char *) eap->arg : (char *) script, | 1019 DoPyCommand(script == NULL ? (char *) eap->arg : (char *) script, |
1020 (rangeinitializer) init_range_cmd, | 1020 (rangeinitializer) init_range_cmd, |
1021 (runner) run_cmd, | 1021 (runner) run_cmd, |
1022 (void *) eap); | 1022 (void *) eap); |
1023 } | 1023 } |