mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-02-25 19:17:24 +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 [
|
for cmd in [
|
||||||
\ printf('ctags -f - --sort=no --excmd=number --language-force=%s %s', &filetype, expand('%:S')),
|
\ printf('ctags -f - --sort=no --excmd=number --language-force=%s %s', &filetype, expand('%:S')),
|
||||||
\ printf('ctags -f - --sort=no --excmd=number %s', 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
|
if !v:shell_error
|
||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
@@ -430,7 +430,7 @@ function! s:btags_source()
|
|||||||
elseif empty(lines)
|
elseif empty(lines)
|
||||||
throw 'No tags found'
|
throw 'No tags found'
|
||||||
endif
|
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
|
endfunction
|
||||||
|
|
||||||
function! s:btags_sink(lines)
|
function! s:btags_sink(lines)
|
||||||
|
|||||||
Reference in New Issue
Block a user