Skip to content
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

fix(--headless): do not block on press-enter prompts when no UI #17199

Merged
merged 1 commit into from
Feb 5, 2022

Conversation

glacambre
Copy link
Member

@glacambre glacambre commented Jan 26, 2022

This commit fixes #9358, where emitting multiple messages with 'echo' or
a single one with 'echom' or 'echoerr' would result in a press-enter
prompt that couldn't be dismissed by pressing enter.

This requires adapting a few tests to spawn a UI before testing whether
press-enter prompts are blocking.

It also fixes #11718, as when combined with #15910 it enables making
sure that neovim never blocks or emits messages on startup.

This commit fixes neovim#9358, where emitting multiple messages with 'echo' or
a single one with 'echom' or 'echoerr' would result in a press-enter
prompt that couldn't be dismissed by pressing enter.

This requires adapting a few tests to spawn a UI before testing whether
press-enter prompts are blocking.

It also fixes neovim#11718, as when combined with neovim#15910 it enables making
sure that neovim never blocks and emits messages on startup.
@glacambre
Copy link
Member Author

@gpanders Github suggested you as reviewer, let me know if you'd prefer me to bother somebody else :)

@gpanders
Copy link
Member

gpanders commented Feb 5, 2022

Anything UI related needs to go through @bfredl.

@glacambre glacambre requested review from bfredl and removed request for gpanders February 5, 2022 15:35
@glacambre
Copy link
Member Author

Cool, thanks :)

@bfredl bfredl merged commit cee944e into neovim:master Feb 5, 2022
@glacambre
Copy link
Member Author

@bfredl @gpanders thank you both for looking at this PR so swiftly, I really appreciate it :)

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

Successfully merging this pull request may close these issues.

startup: wait for stdioopen() ? "Press-Enter" prompt in headless mode
3 participants