--sync: Do not start TUI until initial filtering is complete

This commit is contained in:
Junegunn Choi 2024-06-15 10:46:28 +09:00
parent 79196c025d
commit 6de0a7ddc1
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -247,7 +247,7 @@ func Run(opts *Options) (int, error) {
if heightUnknown { if heightUnknown {
maxFit, padHeight = terminal.MaxFitAndPad() maxFit, padHeight = terminal.MaxFitAndPad()
} }
deferred := opts.Select1 || opts.Exit0 deferred := opts.Select1 || opts.Exit0 || opts.Sync
go terminal.Loop() go terminal.Loop()
if !deferred && !heightUnknown { if !deferred && !heightUnknown {
// Start right away // Start right away