diff options
author | Michael Kelley <michael.kelley@here.com> | 2016-10-23 20:45:45 -0700 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2016-11-07 02:32:14 +0900 |
commit | 26895da96918f9b1956a04981c8af5f3e42fcbd8 (patch) | |
tree | 189b7c8f639bda4f8d4e5aee838e59be48c69044 /src/options_test.go | |
parent | 0c573b3dffe806253e1df2447754a5f3939a11f0 (diff) |
Implement tcell-based renderer
Diffstat (limited to 'src/options_test.go')
-rw-r--r-- | src/options_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/options_test.go b/src/options_test.go index f16569e3..092efe4d 100644 --- a/src/options_test.go +++ b/src/options_test.go @@ -2,6 +2,7 @@ package fzf import ( "fmt" + "io/ioutil" "testing" "github.com/junegunn/fzf/src/tui" @@ -336,7 +337,9 @@ func TestDefaultCtrlNP(t *testing.T) { check([]string{"--bind=ctrl-n:accept"}, tui.CtrlN, actAccept) check([]string{"--bind=ctrl-p:accept"}, tui.CtrlP, actAccept) - hist := "--history=/tmp/fzf-history" + f, _ := ioutil.TempFile("", "fzf-history") + f.Close() + hist := "--history=" + f.Name() check([]string{hist}, tui.CtrlN, actNextHistory) check([]string{hist}, tui.CtrlP, actPreviousHistory) |