mirror of
https://github.com/gryf/pep8-vim.git
synced 2025-12-18 20:20:18 +01:00
Added check for command existsing instead of setting buffer variable
This commit is contained in:
@@ -48,10 +48,8 @@
|
||||
|
||||
let s:plugin_path = expand('<sfile>:p:h', 1)
|
||||
|
||||
if exists("b:did_pep8_plugin")
|
||||
if exists(":Pep8")
|
||||
finish " only load once
|
||||
else
|
||||
let b:did_pep8_plugin = 1
|
||||
endif
|
||||
|
||||
if !exists("g:pep8_exclude")
|
||||
@@ -82,7 +80,6 @@ function! s:LoadPep8()
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
||||
call s:LoadPep8()
|
||||
|
||||
function s:Pep8()
|
||||
|
||||
Reference in New Issue
Block a user