aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/ui.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-09-02 15:52:18 -0700
committerGitHub <noreply@github.com>2024-09-02 15:52:18 -0700
commitae9674704ac5586438f60c883e918d448ef0e237 (patch)
treeb621a6b44c8f95b3db18274b4e6d0f319cdbd391 /src/nvim/api/ui.c
parentef8067a19d981388a14407ea08245811cf5b3604 (diff)
parent96128a5076b7e45fc01163151401a9e2acdff565 (diff)
downloadrneovim-ae9674704ac5586438f60c883e918d448ef0e237.tar.gz
rneovim-ae9674704ac5586438f60c883e918d448ef0e237.tar.bz2
rneovim-ae9674704ac5586438f60c883e918d448ef0e237.zip
Merge #30237 validate --listen address
Diffstat (limited to 'src/nvim/api/ui.c')
-rw-r--r--src/nvim/api/ui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/api/ui.c b/src/nvim/api/ui.c
index a99d97acb8..5dc373acdc 100644
--- a/src/nvim/api/ui.c
+++ b/src/nvim/api/ui.c
@@ -93,15 +93,15 @@ void remote_ui_free_all_mem(void)
}
#endif
-/// Wait until ui has connected on stdio channel if only_stdio
-/// is true, otherwise any channel.
+/// Wait until UI has connected.
+///
+/// @param only_stdio UI is expected to connect on stdio.
void remote_ui_wait_for_attach(bool only_stdio)
{
if (only_stdio) {
Channel *channel = find_channel(CHAN_STDIO);
if (!channel) {
- // this function should only be called in --embed mode, stdio channel
- // can be assumed.
+ // `only_stdio` implies --embed mode, thus stdio channel can be assumed.
abort();
}