mirror of
https://github.com/prabirshrestha/vim-lsp.git
synced 2025-12-20 09:11:56 +01:00
Fix open_location without mods (#806)
Co-authored-by: Bastian Winkler <buz@serious.im>
This commit is contained in:
@@ -9,7 +9,7 @@ function! s:open_location(path, line, col, ...) abort
|
|||||||
if l:buffer == bufnr('%')
|
if l:buffer == bufnr('%')
|
||||||
let l:cmd = ''
|
let l:cmd = ''
|
||||||
else
|
else
|
||||||
let l:cmd = l:buffer !=# -1 ? 'b ' . l:buffer : 'edit ' . fnameescape(a:path) . ' | '
|
let l:cmd = (l:buffer !=# -1 ? 'b ' . l:buffer : 'edit ' . fnameescape(a:path)) . ' | '
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
let l:cmd = l:mods . ' ' . (l:buffer !=# -1 ? 'sb ' . l:buffer : 'split ' . fnameescape(a:path)) . ' | '
|
let l:cmd = l:mods . ' ' . (l:buffer !=# -1 ? 'sb ' . l:buffer : 'split ' . fnameescape(a:path)) . ' | '
|
||||||
|
|||||||
Reference in New Issue
Block a user