When using the terminal method (
|
if s:UsesTerminal(a:request) |
|
if s:NeedsOutput(a:request) |
|
execute 'botright split | enew | resize 10' |
|
let opts.buf_id = bufnr('%') |
|
call termopen(cmd, opts) |
|
call s:SaveCurrentBufferPid(a:request) |
|
execute 'wincmd p' |
|
else |
|
execute 'tabnew' |
|
call termopen(cmd, opts) |
|
call s:SaveCurrentBufferPid(a:request) |
|
if bg |
|
execute 'tabprev' |
|
else |
|
execute 'startinsert' |
|
endif |
|
endif |
), the lines end up being split at the width of the terminal window, which then causes issues when using it with
&errorformat etc.
For the other method, there's some joining of lines in place, but this would require for the terminal buffer to have soft-wrapping capabilities.
When using the terminal method (
vim-dispatch-neovim/autoload/dispatch/neovim.vim
Lines 62 to 78 in 85deb47
&errorformatetc.For the other method, there's some joining of lines in place, but this would require for the terminal buffer to have soft-wrapping capabilities.