From 6b40ba89f399192f45088c2e64db0cc461442632 Mon Sep 17 00:00:00 2001 From: ckath Date: Sun, 4 Jun 2023 21:20:11 +0200 Subject: [PATCH] fix hang with preview when droppping to shell managed to run into it a couple times not fully reproducable but if the preview takes a bit to load and you drop to shell in that time it'll do weird things. best to make sure to cancel it like it does in many other scenarios --- fuf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fuf.c b/fuf.c index e5dd7e6..0933b52 100644 --- a/fuf.c +++ b/fuf.c @@ -840,6 +840,7 @@ main(int argc, char *argv[]) } break; case 't': + cancel_preview(); sendwin(); setenv("FUFSEL", items[sel_item].name, 1); open_with(getenv("SHELL"), NULL, true);