diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2023-04-22 15:06:22 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2023-04-22 15:09:43 +0900 |
commit | 7c6f5dba63a4cf54a785090c26479003118f0046 (patch) | |
tree | 31356868f491c54e26b745d99bd59b44df3b7997 /src/options.go | |
parent | 44cfc7e62a44e06fb419a6d87e8f80bb7a8281cd (diff) |
Fixed --track when used with --tac
Fix #3234
Diffstat (limited to 'src/options.go')
-rw-r--r-- | src/options.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/options.go b/src/options.go index 071819d9..e09e9b59 100644 --- a/src/options.go +++ b/src/options.go @@ -1083,6 +1083,8 @@ func parseActionList(masked string, original string, prevActions []*action, putA appendAction(actToggleAll) case "toggle-search": appendAction(actToggleSearch) + case "toggle-track": + appendAction(actToggleTrack) case "select": appendAction(actSelect) case "select-all": @@ -1938,10 +1940,6 @@ func postProcessOptions(opts *Options) { errorExit("scrollbar display width should be 1") } - if opts.Track && opts.Tac { - errorExit("--track cannot be used with --tac") - } - // Default actions for CTRL-N / CTRL-P when --history is set if opts.History != nil { if _, prs := opts.Keymap[tui.CtrlP.AsEvent()]; !prs { |