mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-01-15 15:46:53 +08:00
Fix #46 - Fix incorrect error message type when ctags command failed
This commit is contained in:
@@ -420,7 +420,7 @@ function! s:btags_source()
|
||||
for cmd in [
|
||||
\ printf('ctags -f - --sort=no --excmd=number --language-force=%s %s', &filetype, expand('%:S')),
|
||||
\ printf('ctags -f - --sort=no --excmd=number %s', expand('%:S'))]
|
||||
let lines = map(split(system(cmd), "\n"), 'split(v:val, "\t")')
|
||||
let lines = split(system(cmd), "\n")
|
||||
if !v:shell_error
|
||||
break
|
||||
endif
|
||||
@@ -430,7 +430,7 @@ function! s:btags_source()
|
||||
elseif empty(lines)
|
||||
throw 'No tags found'
|
||||
endif
|
||||
return map(s:align_lists(lines), 'join(v:val, "\t")')
|
||||
return map(s:align_lists(map(lines, 'split(v:val, "\t")')), 'join(v:val, "\t")')
|
||||
endfunction
|
||||
|
||||
function! s:btags_sink(lines)
|
||||
|
||||
Reference in New Issue
Block a user