From 60465c4664bd390c49d5eeb46abcbf7d34c36cc2 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 21 Nov 2019 23:06:13 +0900 Subject: Fix parse error of --bind expression --- src/options_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/options_test.go') diff --git a/src/options_test.go b/src/options_test.go index 543bf570..5d35fb3e 100644 --- a/src/options_test.go +++ b/src/options_test.go @@ -243,7 +243,7 @@ func TestBind(t *testing.T) { check(tui.CtrlA, "", actBeginningOfLine) parseKeymap(keymap, "ctrl-a:kill-line,ctrl-b:toggle-sort+up+down,c:page-up,alt-z:page-down,"+ - "f1:execute(ls {})+abort,f2:execute/echo {}, {}, {}/,f3:execute[echo '({})'],f4:execute;less {};,"+ + "f1:execute(ls {+})+abort+execute(echo {+})+select-all,f2:execute/echo {}, {}, {}/,f3:execute[echo '({})'],f4:execute;less {};,"+ "alt-a:execute-Multi@echo (,),[,],/,:,;,%,{}@,alt-b:execute;echo (,),[,],/,:,@,%,{};,"+ "x:Execute(foo+bar),X:execute/bar+baz/"+ ",,:abort,::accept,+:execute:++\nfoobar,Y:execute(baz)+up") @@ -253,7 +253,7 @@ func TestBind(t *testing.T) { check(tui.AltZ+',', "", actAbort) check(tui.AltZ+':', "", actAccept) check(tui.AltZ, "", actPageDown) - check(tui.F1, "ls {}", actExecute, actAbort) + check(tui.F1, "ls {+}", actExecute, actAbort, actExecute) check(tui.F2, "echo {}, {}, {}", actExecute) check(tui.F3, "echo '({})'", actExecute) check(tui.F4, "less {}", actExecute) -- cgit v1.2.3