m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-14 06:13:47 -05:00

Fixed --track when used with --tac

Fix #3234
This commit is contained in:
Junegunn Choi
2023-04-22 15:06:22 +09:00
parent 44cfc7e62a
commit 7c6f5dba63
5 changed files with 30 additions and 14 deletions

View File

@@ -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 {