From ca7bc55cf5134b11451ca6b88d9fa0205bbaac66 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 22 Oct 2024 21:18:23 +1100 Subject: Run shell-script-completions asynchronously Share most logic with shell-script-candidates. Now that we do not block we can run the completion script implicitely instead of waiting for an explicit completion request with . Fixes #5245 --- test/shell/prompt-shell-script-completion/cmd | 2 +- test/shell/prompt-shell-script-completion/rc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'test/shell/prompt-shell-script-completion') diff --git a/test/shell/prompt-shell-script-completion/cmd b/test/shell/prompt-shell-script-completion/cmd index 7cc38390..8b137891 100644 --- a/test/shell/prompt-shell-script-completion/cmd +++ b/test/shell/prompt-shell-script-completion/cmd @@ -1 +1 @@ -:foob + diff --git a/test/shell/prompt-shell-script-completion/rc b/test/shell/prompt-shell-script-completion/rc index 3fd111ba..f7175986 100644 --- a/test/shell/prompt-shell-script-completion/rc +++ b/test/shell/prompt-shell-script-completion/rc @@ -1,3 +1,4 @@ +set-option global autocomplete prompt define-command foo %{ - prompt -shell-script-completion %{ printf 'foo\nbar\nhaz\n' } ': ' %{exec i %val{text} } + prompt -shell-script-completion %{ printf 'foo\nbar\nbaz\n' } ': ' %{exec i %val{text} } } -- cgit v1.2.3