From 120a9f0bf50ac288f679137e2e78240622e96869 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Thu, 15 Jan 2026 17:23:44 +0100 Subject: [PATCH] fix: don't clear_hover_focus in refresh_hover This causes an endless render loop because the hover status ping pongs. This was probably originally added to avoid dangling widget pointers. We handle that correctly now elsewhere with is_live_widget_ptr. --- src/tui/tui.zig | 1 - 1 file changed, 1 deletion(-) diff --git a/src/tui/tui.zig b/src/tui/tui.zig index 184041c..b579062 100644 --- a/src/tui/tui.zig +++ b/src/tui/tui.zig @@ -879,7 +879,6 @@ fn send_hover_msg(widget: *const Widget, hover: bool) tp.result { pub fn refresh_hover(src: std.builtin.SourceLocation) void { const self = current(); tp.trace(tp.channel.debug, .{ "tui", "refresh_hover", if (self.hover_focus) |h| @intFromPtr(h) else 0, src.fn_name, src.file, src.line }); - self.clear_hover_focus(@src()) catch return; _ = self.update_hover(self.last_hover_y, self.last_hover_x) catch {}; }