diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2020-10-11 01:51:39 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-10-11 01:54:39 +0900 |
| commit | 3248153d9f928710103073de0752145ffb95a631 (patch) | |
| tree | 5ea994a958e94b1859ed91e3067abf16f04d0e5e /src/options_test.go | |
| parent | 246b9f313085fac4c9c84cf8bf55cc8a8fc29482 (diff) | |
| download | fzf-3248153d9f928710103073de0752145ffb95a631.tar.gz | |
Add --preview-window=default for resetting the options
Diffstat (limited to 'src/options_test.go')
| -rw-r--r-- | src/options_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/options_test.go b/src/options_test.go index aae8eedc..78207275 100644 --- a/src/options_test.go +++ b/src/options_test.go @@ -417,6 +417,13 @@ func TestPreviewOpts(t *testing.T) { opts.Preview.size.size == 15) { t.Error(opts.Preview) } + opts = optsFor("--preview=foo", "--preview-window=up", "--preview-window=default:70%") + if !(opts.Preview.command == "foo" && + opts.Preview.position == posRight && + opts.Preview.size.percent == true && + opts.Preview.size.size == 70) { + t.Error(opts.Preview) + } } func TestAdditiveExpect(t *testing.T) { |
