Skip to content

Output is split at teminal/window width #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
blueyed opened this issue Aug 29, 2016 · 1 comment
Open

Output is split at teminal/window width #7

blueyed opened this issue Aug 29, 2016 · 1 comment

Comments

@blueyed
Copy link
Contributor

blueyed commented Aug 29, 2016

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.

@blueyed
Copy link
Contributor Author

blueyed commented Aug 29, 2016

Using tee to write into the tempfile directly in that case seems to be a good workaround!

But it breaks e.g. Python's pdb slightly: cursor keys etc are not recognized anymore. To reproduce it:

python -c 'import pdb; pdb.set_trace()' | tee /tmp/tmp.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant