diff options
| author | Maxime Coste <mawww@kakoune.org> | 2024-10-22 21:18:23 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2024-10-22 21:18:23 +1100 |
| commit | ca7bc55cf5134b11451ca6b88d9fa0205bbaac66 (patch) | |
| tree | c03386754bb30876a09bd322a8d4433d02bbb1c7 /test | |
| parent | 63ccc61c1db8e7dd06bfff0641088b6656ff62c3 (diff) | |
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 <tab>.
Fixes #5245
Diffstat (limited to 'test')
| -rw-r--r-- | test/shell/prompt-shell-script-completion/cmd | 2 | ||||
| -rw-r--r-- | test/shell/prompt-shell-script-completion/rc | 3 |
2 files changed, 3 insertions, 2 deletions
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 @@ -:foo<ret>b<tab><tab><ret> + 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} <esc>} + prompt -shell-script-completion %{ printf 'foo\nbar\nbaz\n' } ': ' %{exec i %val{text} <esc>} } |
