From e19bdc79f0cc6e8521085c69ba6e22da24fce8a4 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 00:52:01 -0300 Subject: file_watch: every pane's watch is dropped by one call (unwatchAll), where the tty's Restore, the window's Restore and a tty test each wrote the same eight-line loop over every pane Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/gui/gui.zig | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/gui') diff --git a/src/gui/gui.zig b/src/gui/gui.zig index 711f0657..95df9fac 100644 --- a/src/gui/gui.zig +++ b/src/gui/gui.zig @@ -2544,14 +2544,7 @@ fn localSession( shell.gview = 0; shell.windowed = 1; shell.stopPtys(); - for (0..pardes.MAX_PANES) |wid| file_watch.watchPane( - inotify_fd, - &watches, - @intCast(wid), - null, - 0, - .{ .text = 0 }, - ); + file_watch.unwatchAll(inotify_fd, &watches); _ = file_watch.applyThemeEffect(core, gpa, inotify_fd, &watches, 0, false, false); clearNativeImages(g); g.presented_images.clearRetainingCapacity(); -- cgit v1.3