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.
This commit is contained in:
ridiculousfish
2021-04-11 18:13:39 -07:00
parent 467755bf4a
commit f7cef13b9b

View File

@@ -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).