Kaynağa Gözat

Merge fc6a66bf8025d311ce86076c064aa9263a1e5b3e into e344f212b67b291bcf56ed75d3c7e6de0d5bcdac

Will Gray 11 yıl önce
ebeveyn
işleme
32194d4063
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2
    2
      syntax/python.vim

+ 2
- 2
syntax/python.vim Dosyayı Görüntüle

@@ -88,8 +88,8 @@ endif
88 88
 "
89 89
 " Commands
90 90
 "
91
-command! -buffer Python2Syntax let b:python_version_2 = 1 | if exists("g:syntax_on") | syn off | endif | syn enable
92
-command! -buffer Python3Syntax let b:python_version_2 = 0 | if exists("g:syntax_on") | syn off | endif | syn enable
91
+command! -buffer Python2Syntax let b:python_version_2 = 1 | let &syntax=&syntax
92
+command! -buffer Python3Syntax let b:python_version_2 = 0 | let &syntax=&syntax
93 93
 
94 94
 " Enable option if it's not defined
95 95
 function! s:EnableByDefault(name)