forked from VimPlug/jedi-vim
Use escape_file_path in new_buffer
Fix: If a definition file path contains a space, the "open in split"
fails with an error.
Fixes https://github.com/davidhalter/jedi-vim/issues/491.
Closes https://github.com/davidhalter/jedi-vim/issues/492.
This commit is contained in:
committed by
Daniel Hahler
parent
9af06424fb
commit
84f5cd92c7
@@ -47,6 +47,7 @@ Matthew Tylee Atkinson (@matatk)
|
|||||||
Pedro Ferrari (@petobens)
|
Pedro Ferrari (@petobens)
|
||||||
Daniel Hahler (@blueyed)
|
Daniel Hahler (@blueyed)
|
||||||
Dave Honneffer (@pearofducks)
|
Dave Honneffer (@pearofducks)
|
||||||
|
Bagrat Aznauryan (@n9code)
|
||||||
|
|
||||||
|
|
||||||
@something are github user names.
|
@something are github user names.
|
||||||
|
|||||||
@@ -640,7 +640,7 @@ def new_buffer(path, options='', using_tagstack=False):
|
|||||||
if user_split_option not in split_options:
|
if user_split_option not in split_options:
|
||||||
print('g:jedi#use_splits_not_buffers value is not correct, valid options are: %s' % ','.join(split_options.keys()))
|
print('g:jedi#use_splits_not_buffers value is not correct, valid options are: %s' % ','.join(split_options.keys()))
|
||||||
else:
|
else:
|
||||||
vim_command(split_options[user_split_option] + " %s" % path)
|
vim_command(split_options[user_split_option] + " %s" % escape_file_path(path))
|
||||||
else:
|
else:
|
||||||
if vim_eval("!&hidden && &modified") == '1':
|
if vim_eval("!&hidden && &modified") == '1':
|
||||||
if vim_eval("bufname('%')") is None:
|
if vim_eval("bufname('%')") is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user