mirror of
https://github.com/prabirshrestha/vim-lsp.git
synced 2025-12-14 20:35:59 +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('%')
|
||||
let l:cmd = ''
|
||||
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
|
||||
else
|
||||
let l:cmd = l:mods . ' ' . (l:buffer !=# -1 ? 'sb ' . l:buffer : 'split ' . fnameescape(a:path)) . ' | '
|
||||
|
||||
Reference in New Issue
Block a user