Fix error when g:todo_load_python is not defined

This commit is contained in:
Leandro Freitas
2016-10-21 07:05:00 -04:00
parent f123ee6a95
commit e509fc76f1

View File

@@ -50,7 +50,7 @@ highlight default link TodoDate PreProc
highlight default link TodoProject Special highlight default link TodoProject Special
highlight default link TodoContext Special highlight default link TodoContext Special
if g:todo_load_python if exists('g:todo_load_python') && g:todo_load_python
if has('python') if has('python')
let b:curdir = expand('<sfile>:p:h') let b:curdir = expand('<sfile>:p:h')
let s:script_dir = b:curdir . "/python/" let s:script_dir = b:curdir . "/python/"