mirror of
https://github.com/powerline/powerline.git
synced 2025-07-31 01:35:40 +02:00
Change code to use vim_get_func('fnameescape')
Previous version had problems with paths containing backslashes and/or double quotes.
This commit is contained in:
parent
ee0acef49c
commit
7fb3df28b9
@ -4,5 +4,8 @@
|
|||||||
def source_plugin():
|
def source_plugin():
|
||||||
import os
|
import os
|
||||||
import vim
|
import vim
|
||||||
|
from bindings import vim_get_func
|
||||||
|
|
||||||
vim.command('source ' + vim.eval('fnameescape("' + os.path.join(os.path.abspath(os.path.dirname(__file__)), 'powerline.vim') + '")'))
|
fnameescape = vim_get_func('fnameescape')
|
||||||
|
|
||||||
|
vim.command('source ' + fnameescape(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'powerline.vim')))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user