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

Disallow using --track with --tac

Close #3234
This commit is contained in:
Junegunn Choi
2023-04-12 13:23:10 +09:00
parent 36b971ee4e
commit 96670d5f16
3 changed files with 10 additions and 0 deletions

View File

@@ -1938,6 +1938,10 @@ 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 {