mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 00:41:15 -03:00
Test completion pager invalidation behavior
This commit is contained in:
19
tests/checks/tmux-complete3.fish
Normal file
19
tests/checks/tmux-complete3.fish
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#RUN: %fish %s
|
||||||
|
#REQUIRES: command -v tmux
|
||||||
|
#REQUIRES: uname -r | grep -qv Microsoft
|
||||||
|
|
||||||
|
isolated-tmux-start
|
||||||
|
|
||||||
|
# Test that Tab recomputes completion if the list was empty.
|
||||||
|
isolated-tmux send-keys ': somedir' Tab
|
||||||
|
mkdir somedirectory
|
||||||
|
isolated-tmux send-keys Tab
|
||||||
|
tmux-sleep
|
||||||
|
isolated-tmux capture-pane -p
|
||||||
|
# CHECK: prompt 0> : somedirectory/
|
||||||
|
|
||||||
|
# But not if the completion pager wasn't empty.
|
||||||
|
mkdir somedirectory2 somedirectory3
|
||||||
|
isolated-tmux send-keys Tab
|
||||||
|
isolated-tmux capture-pane -p
|
||||||
|
# CHECK: prompt 0> : somedirectory/
|
||||||
Reference in New Issue
Block a user