aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/channel.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2018-09-22 10:20:23 +0200
committerGitHub <noreply@github.com>2018-09-22 10:20:23 +0200
commitc236e80cf3dfae6df5c43ecfb19c7629c9884f7b (patch)
tree426eb0f7525621d9760bb2cbf394d5c42b691775 /src/nvim/channel.c
parent7f990741f7018b5e52833f2da6913b97c6d2d5ee (diff)
parent4da5cb38d396d76d8072815d150725f7c9a85078 (diff)
downloadrneovim-c236e80cf3dfae6df5c43ecfb19c7629c9884f7b.tar.gz
rneovim-c236e80cf3dfae6df5c43ecfb19c7629c9884f7b.tar.bz2
rneovim-c236e80cf3dfae6df5c43ecfb19c7629c9884f7b.zip
Merge pull request #9024 from bfredl/embed_ui2
always wait for UI with --embed, unless --headless is supplied
Diffstat (limited to 'src/nvim/channel.c')
-rw-r--r--src/nvim/channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/channel.c b/src/nvim/channel.c
index 36423d0aa1..259f1cc600 100644
--- a/src/nvim/channel.c
+++ b/src/nvim/channel.c
@@ -432,7 +432,7 @@ uint64_t channel_from_stdio(bool rpc, CallbackReader on_output,
const char **error)
FUNC_ATTR_NONNULL_ALL
{
- if (!headless_mode) {
+ if (!headless_mode && !embedded_mode) {
*error = _("can only be opened in headless mode");
return 0;
}