Fix race in reload action

Fix #4070
This commit is contained in:
Junegunn Choi
2024-10-31 19:40:40 +09:00
parent 82ebcd9209
commit dcb4c3d84a
2 changed files with 65 additions and 41 deletions

View File

@@ -299,7 +299,7 @@ func Run(opts *Options) (int, error) {
itemIndex = 0
inputRevision.bumpMajor()
header = make([]string, 0, opts.HeaderLines)
go reader.restart(command, environ)
reader.restart(command, environ)
}
exitCode := ExitOk