mirror of
https://github.com/ddworken/hishtory.git
synced 2025-02-22 21:41:01 +01:00
Make control-r faster by not blocking on processing pending deletion requests. Fixed #22
This commit is contained in:
parent
36ff3d362c
commit
94722941cf
@ -406,6 +406,12 @@ func TuiQuery(ctx *context.Context, gitCommit, initialQuery string) error {
|
||||
}
|
||||
p.Send(doneDownloadingMsg{})
|
||||
}()
|
||||
go func() {
|
||||
err := ProcessDeletionRequests(ctx)
|
||||
if err != nil {
|
||||
p.Send(err)
|
||||
}
|
||||
}()
|
||||
go func() {
|
||||
banner, err := GetBanner(ctx, gitCommit)
|
||||
if err != nil {
|
||||
|
@ -35,7 +35,6 @@ func main() {
|
||||
query(ctx, strings.Join(os.Args[2:], " "))
|
||||
case "tquery":
|
||||
ctx := hctx.MakeContext()
|
||||
lib.CheckFatalError(lib.ProcessDeletionRequests(ctx))
|
||||
lib.CheckFatalError(lib.TuiQuery(ctx, GitCommit, strings.Join(os.Args[2:], " ")))
|
||||
case "export":
|
||||
ctx := hctx.MakeContext()
|
||||
|
Loading…
Reference in New Issue
Block a user