From 3db992a883f2a7c5b9e7a662fa1a70cdda821394 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 28 Nov 2015 01:14:12 +0900 Subject: [PATCH] Fix #46 - Fix incorrect error message type when ctags command failed --- autoload/fzf/vim.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index 957cb8e..465490b 100644 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -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)