From 29c8866c7fcd325995c6fc9b2b18537855fee52c Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sat, 9 Jul 2022 01:16:05 +0000 Subject: [PATCH] Fix redisplay after running selection hook on Haiku * src/haikuselect.c (haiku_handle_selection_clear): Call redisplay_preserve_echo_area. --- src/haikuselect.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/haikuselect.c b/src/haikuselect.c index 999a0f5ac29..03aba1f9baa 100644 --- a/src/haikuselect.c +++ b/src/haikuselect.c @@ -1026,6 +1026,10 @@ haiku_handle_selection_clear (struct input_event *ie) { CALLN (Frun_hook_with_args, Qhaiku_lost_selection_functions, ie->arg); + + /* This is required for redisplay to happen if something changed the + display inside the selection loss functions. */ + redisplay_preserve_echo_area (20); } void -- 2.39.5