mirror of
https://github.com/powerline/powerline.git
synced 2025-07-27 07:44:36 +02:00
Merge pull request #1147 from ZyX-I/fix-1146
Use different fallback for old Vims
This commit is contained in:
commit
6b6245c5b3
@ -135,7 +135,7 @@ if hasattr(vim, 'Function'):
|
|||||||
else:
|
else:
|
||||||
def vim_func_exists(f):
|
def vim_func_exists(f):
|
||||||
try:
|
try:
|
||||||
return bool(int(vim.eval('type(function("{0}")) == 2'.format(f))))
|
return bool(int(vim.eval('exists("*{0}")'.format(f))))
|
||||||
except vim.error:
|
except vim.error:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user