mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 03:04:30 +08:00
Merge pull request #1045 from Konstantin-Glukhov/master
Use helper function relpath() instead of os.path.relpath()
This commit is contained in:
@@ -53,5 +53,6 @@ Tommy Allen (@tweekmonster)
|
|||||||
Mingliang (@Aulddays)
|
Mingliang (@Aulddays)
|
||||||
Brian Mego (@brianmego)
|
Brian Mego (@brianmego)
|
||||||
Stevan Milic (@stevanmilic) <stevan.milic@yahoo.com>
|
Stevan Milic (@stevanmilic) <stevan.milic@yahoo.com>
|
||||||
|
Konstantin Glukhov (@Konstantin-Glukhov)
|
||||||
|
|
||||||
@something are github user names.
|
@something are github user names.
|
||||||
|
|||||||
@@ -1112,7 +1112,7 @@ def set_buffer(path: Optional[Path], options='', using_tagstack=False):
|
|||||||
if path in (vim.current.buffer.name, os.path.abspath(vim.current.buffer.name)):
|
if path in (vim.current.buffer.name, os.path.abspath(vim.current.buffer.name)):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
path = os.path.relpath(path)
|
path = relpath(path)
|
||||||
# options are what you can to edit the edit options
|
# options are what you can to edit the edit options
|
||||||
if int(vim_eval('g:jedi#use_tabs_not_buffers')) == 1:
|
if int(vim_eval('g:jedi#use_tabs_not_buffers')) == 1:
|
||||||
_tabnew(path, options)
|
_tabnew(path, options)
|
||||||
|
|||||||
Reference in New Issue
Block a user