From 96670d5f16dcf23d590eb1d83d1de351b2e8fb15 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 12 Apr 2023 13:23:10 +0900 Subject: Disallow using --track with --tac Close #3234 --- src/options.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/options.go b/src/options.go index 8703c0ec..071819d9 100644 --- a/src/options.go +++ b/src/options.go @@ -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 { -- cgit v1.2.3