[BLines] Fix error on line with tab, fix #699 (#708)

This commit is contained in:
Peter Shih
2018-10-01 16:08:25 +08:00
committed by Junegunn Choi
parent c3954d294a
commit c6275ee108

View File

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