Skip to content

Displaying the executed command might cause hit-Enter prompt #166

Closed
@blueyed

Description

@blueyed

The code at

echo ':!'.a:request.expanded .
\ ' ('.handler.'/'.(!empty(pid) ? pid : '?').')'
might trigger a hit-enter prompt (when it's too long / in a small window).

This causes issues, e.g. radenling/vim-dispatch-neovim#4.
But even after fixing this, it seems like there's an issue where the tempfile from vim-dispatch-neovim only contains 10 empty lines, probably because the terminal window is still considered to be empty at that point (because of the hit-enter).

What do you think about only doing this echo if &verbose is > 0?

Is there some other way to handle this better?
As a workaround I could imagine cropping the line to something that fits into cmdheight, but that then seems to be more an issue to tackle at the core / vim.

/cc @radenling

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions