From b7090c93e69fdfff021e5e9e873dc608b02d5c45 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Tue, 16 Feb 2021 16:45:38 +0100 Subject: [PATCH] Fix bind tests I wasn't aware we printed the fallback bindings anywhere, sorry! Fixes #7724. --- tests/checks/bind.fish | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/tests/checks/bind.fish b/tests/checks/bind.fish index 9b483689f..2589fa25b 100644 --- a/tests/checks/bind.fish +++ b/tests/checks/bind.fish @@ -23,25 +23,37 @@ bind --user --preset | string match -v '*backward-delete-char' # CHECK: bind --preset \n execute # CHECK: bind --preset \r execute # CHECK: bind --preset \t complete -# CHECK: bind --preset \cc commandline\ \'\' +# CHECK: bind --preset \cc cancel-commandline # CHECK: bind --preset \cd exit # CHECK: bind --preset \ce bind +# CHECK: bind --preset \cs pager-toggle-search +# CHECK: bind --preset \cu backward-kill-line # CHECK: bind --preset \e\[A up-line # CHECK: bind --preset \e\[B down-line # CHECK: bind --preset \e\[C forward-char # CHECK: bind --preset \e\[D backward-char +# CHECK: bind --preset \cp up-line +# CHECK: bind --preset \cn down-line +# CHECK: bind --preset \cb backward-char +# CHECK: bind --preset \cf forward-char # CHECK: bind -M bind_mode \cx true # CHECK: bind --preset '' self-insert # CHECK: bind --preset \n execute # CHECK: bind --preset \r execute # CHECK: bind --preset \t complete -# CHECK: bind --preset \cc commandline\ \'\' +# CHECK: bind --preset \cc cancel-commandline # CHECK: bind --preset \cd exit # CHECK: bind --preset \ce bind +# CHECK: bind --preset \cs pager-toggle-search +# CHECK: bind --preset \cu backward-kill-line # CHECK: bind --preset \e\[A up-line # CHECK: bind --preset \e\[B down-line # CHECK: bind --preset \e\[C forward-char # CHECK: bind --preset \e\[D backward-char +# CHECK: bind --preset \cp up-line +# CHECK: bind --preset \cn down-line +# CHECK: bind --preset \cb backward-char +# CHECK: bind --preset \cf forward-char # CHECK: bind -M bind_mode \cx true # Preset only @@ -50,13 +62,19 @@ bind --preset | string match -v '*backward-delete-char' # CHECK: bind --preset \n execute # CHECK: bind --preset \r execute # CHECK: bind --preset \t complete -# CHECK: bind --preset \cc commandline\ \'\' +# CHECK: bind --preset \cc cancel-commandline # CHECK: bind --preset \cd exit # CHECK: bind --preset \ce bind +# CHECK: bind --preset \cs pager-toggle-search +# CHECK: bind --preset \cu backward-kill-line # CHECK: bind --preset \e\[A up-line # CHECK: bind --preset \e\[B down-line # CHECK: bind --preset \e\[C forward-char # CHECK: bind --preset \e\[D backward-char +# CHECK: bind --preset \cp up-line +# CHECK: bind --preset \cn down-line +# CHECK: bind --preset \cb backward-char +# CHECK: bind --preset \cf forward-char # User only bind --user | string match -v '*backward-delete-char' @@ -69,13 +87,19 @@ bind | string match -v '*backward-delete-char' # CHECK: bind --preset \n execute # CHECK: bind --preset \r execute # CHECK: bind --preset \t complete -# CHECK: bind --preset \cc commandline\ \'\' +# CHECK: bind --preset \cc cancel-commandline # CHECK: bind --preset \cd exit # CHECK: bind --preset \ce bind +# CHECK: bind --preset \cs pager-toggle-search +# CHECK: bind --preset \cu backward-kill-line # CHECK: bind --preset \e\[A up-line # CHECK: bind --preset \e\[B down-line # CHECK: bind --preset \e\[C forward-char # CHECK: bind --preset \e\[D backward-char +# CHECK: bind --preset \cp up-line +# CHECK: bind --preset \cn down-line +# CHECK: bind --preset \cb backward-char +# CHECK: bind --preset \cf forward-char # CHECK: bind -M bind_mode \cx true # CHECK: bind \t 'echo banana'