From c6275ee1080de4d94bb3f3cfd6e7cc0ccecd9e64 Mon Sep 17 00:00:00 2001 From: Peter Shih Date: Mon, 1 Oct 2018 16:08:25 +0800 Subject: [PATCH] [BLines] Fix error on line with tab, fix #699 (#708) --- autoload/fzf/vim.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index e729ac8..320356d 100644 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -390,7 +390,9 @@ function! s:buffer_line_handler(lines) endif let qfl = [] for line in a:lines[1:] - let [ln, ltxt] = split(line, "\t") + let chunks = split(line, "\t", 1) + let ln = chunks[0] + let ltxt = join(chunks[1:], "\t") call add(qfl, {'filename': expand('%'), 'lnum': str2nr(ln), 'text': ltxt}) endfor call s:fill_quickfix(qfl, 'cfirst')