File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1109,12 +1109,12 @@ ex_python(exarg_T *eap)
11091109{
11101110 char_u * script ;
11111111
1112- if (p_pyx == 0 )
1113- p_pyx = 2 ;
1114-
11151112 script = script_get (eap , eap -> arg );
11161113 if (!eap -> skip )
11171114 {
1115+ if (p_pyx == 0 )
1116+ p_pyx = 2 ;
1117+
11181118 DoPyCommand (script == NULL ? (char * ) eap -> arg : (char * ) script ,
11191119 (rangeinitializer ) init_range_cmd ,
11201120 (runner ) run_cmd ,
Original file line number Diff line number Diff line change @@ -1010,12 +1010,12 @@ ex_py3(exarg_T *eap)
10101010{
10111011 char_u * script ;
10121012
1013- if (p_pyx == 0 )
1014- p_pyx = 3 ;
1015-
10161013 script = script_get (eap , eap -> arg );
10171014 if (!eap -> skip )
10181015 {
1016+ if (p_pyx == 0 )
1017+ p_pyx = 3 ;
1018+
10191019 DoPyCommand (script == NULL ? (char * ) eap -> arg : (char * ) script ,
10201020 (rangeinitializer ) init_range_cmd ,
10211021 (runner ) run_cmd ,
Original file line number Diff line number Diff line change @@ -63,3 +63,11 @@ func Test_vim_function()
6363 py del f
6464 delfunc s: foo
6565endfunc
66+
67+ func Test_skipped_python_command_does_not_affect_pyxversion ()
68+ set pyxversion = 0
69+ if 0
70+ python import vim
71+ endif
72+ call assert_equal (0 , &pyxversion ) " This assertion would have failed with Vim 8.0.0251. (pyxversion was introduced in 8.0.0251.)
73+ endfunc
Original file line number Diff line number Diff line change @@ -63,3 +63,11 @@ func Test_vim_function()
6363 py3 del f
6464 delfunc s: foo
6565endfunc
66+
67+ func Test_skipped_python3_command_does_not_affect_pyxversion ()
68+ set pyxversion = 0
69+ if 0
70+ python3 import vim
71+ endif
72+ call assert_equal (0 , &pyxversion ) " This assertion would have failed with Vim 8.0.0251. (pyxversion was introduced in 8.0.0251.)
73+ endfunc
Original file line number Diff line number Diff line change @@ -779,6 +779,8 @@ static char *(features[]) =
779779
780780static int included_patches [] =
781781{ /* Add new patch number below this line */
782+ /**/
783+ 950 ,
782784/**/
783785 949 ,
784786/**/
You can’t perform that action at this time.
0 commit comments