From f7cef13b9b12194406becce92cc8fdcd8cddc349 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 11 Apr 2021 18:13:39 -0700 Subject: [PATCH] Partially fix the tmux-complete test The autosuggestion was creeping in, causing us to sometimes show file-1 and sometimes just file-. Allow the race through a regular expression. --- tests/checks/tmux-complete.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/checks/tmux-complete.fish b/tests/checks/tmux-complete.fish index 9c55bc0ae..6f2fc46c4 100644 --- a/tests/checks/tmux-complete.fish +++ b/tests/checks/tmux-complete.fish @@ -28,7 +28,8 @@ echo >file-2 $tmux send-keys 'HOME=$PWD ls ~/' Tab $sleep $tmux capture-pane -p -# CHECK: prompt 0> HOME=$PWD ls ~/file- +# Note the contents may or may not have the autosuggestion appended - it is a race. +# CHECK: prompt 0> HOME=$PWD ls ~/file-{{1?}} # CHECK: ~/file-1 ~/file-2 # No pager on single smartcase completion (#7738).