diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2019-11-21 23:06:13 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2019-11-21 23:06:13 +0900 |
commit | 60465c4664bd390c49d5eeb46abcbf7d34c36cc2 (patch) | |
tree | 9a27be8683a2c16da43ad6cfec78b777de70db04 /src/options_test.go | |
parent | c03c058bd52f14f6eba57e83864ad5a78c5e57b9 (diff) |
Fix parse error of --bind expression
Diffstat (limited to 'src/options_test.go')
-rw-r--r-- | src/options_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) |