Fix open_location without mods (#806)

Co-authored-by: Bastian Winkler <buz@serious.im>
This commit is contained in:
buztard
2020-04-26 21:35:24 +02:00
committed by GitHub
parent 5c5649bdda
commit e37f5e31f4

View File

@@ -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)) . ' | '