m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 07:43:39 -05:00

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

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