Merge remote-tracking branch 'zyx-i/fix-511' into develop

This commit is contained in:
Kim Silkebækken 2013-05-22 13:58:26 +02:00
commit 23a59ba93d
3 changed files with 20 additions and 0 deletions

View File

@ -40,5 +40,6 @@ finally
endif
endtry
execute s:pycmd 'import vim'
execute s:pycmd 'powerline_setup(pyeval=vim.eval("s:pyeval"), pycmd=vim.eval("s:pycmd"))'
execute s:pycmd 'del powerline_setup'

View File

@ -10,4 +10,7 @@ done
if ! ${PYTHON} scripts/powerline-lint -p powerline/config_files ; then
FAILED=1
fi
if ! vim -S tests/test_plugin_file.vim ; then
FAILED=1
fi
exit $FAILED

16
tests/test_plugin_file.vim Executable file
View File

@ -0,0 +1,16 @@
#!/usr/bin/vim -S
set nocompatible
try
source powerline/bindings/vim/plugin/powerline.vim
catch
cquit
endtry
set ls=2
redrawstatus!
redir =>mes
messages
redir END
if len(split(mes, "\n"))>1
cquit
endif
quit!