summaryrefslogtreecommitdiff
path: root/test/shell/prompt-shell-script-completion
diff options
context:
space:
mode:
Diffstat (limited to 'test/shell/prompt-shell-script-completion')
-rw-r--r--test/shell/prompt-shell-script-completion/cmd1
-rw-r--r--test/shell/prompt-shell-script-completion/in1
-rw-r--r--test/shell/prompt-shell-script-completion/out1
-rw-r--r--test/shell/prompt-shell-script-completion/rc3
4 files changed, 6 insertions, 0 deletions
diff --git a/test/shell/prompt-shell-script-completion/cmd b/test/shell/prompt-shell-script-completion/cmd
new file mode 100644
index 00000000..7cc38390
--- /dev/null
+++ b/test/shell/prompt-shell-script-completion/cmd
@@ -0,0 +1 @@
+:foo<ret>b<tab><tab><ret>
diff --git a/test/shell/prompt-shell-script-completion/in b/test/shell/prompt-shell-script-completion/in
new file mode 100644
index 00000000..8b137891
--- /dev/null
+++ b/test/shell/prompt-shell-script-completion/in
@@ -0,0 +1 @@
+
diff --git a/test/shell/prompt-shell-script-completion/out b/test/shell/prompt-shell-script-completion/out
new file mode 100644
index 00000000..257cc564
--- /dev/null
+++ b/test/shell/prompt-shell-script-completion/out
@@ -0,0 +1 @@
+foo
diff --git a/test/shell/prompt-shell-script-completion/rc b/test/shell/prompt-shell-script-completion/rc
new file mode 100644
index 00000000..3fd111ba
--- /dev/null
+++ b/test/shell/prompt-shell-script-completion/rc
@@ -0,0 +1,3 @@
+define-command foo %{
+ prompt -shell-script-completion %{ printf 'foo\nbar\nhaz\n' } ': ' %{exec i %val{text} <esc>}
+}