Skip to content

Commit

Permalink
fix hang with preview when droppping to shell
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Ckath committed Jun 4, 2023
1 parent 57cd6fc commit 6b40ba8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6b40ba8

Please sign in to comment.