summaryrefslogtreecommitdiff
path: root/src/gui/gui.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gui.zig')
-rw-r--r--src/gui/gui.zig10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/gui.zig b/src/gui/gui.zig
index d8086981..998573b5 100644
--- a/src/gui/gui.zig
+++ b/src/gui/gui.zig
@@ -2137,6 +2137,11 @@ fn drainEffects(
_ = c.SDL_SetClipboardText(z.ptr);
},
.lsp => |e| if (threads_ok) spawnLsp(core, gpa, queue, e),
+ // ponytail: the SDL shell does not watch files. Everything the core
+ // needs is already here (the effect and the file_changed event) — what
+ // is missing is the ~50 lines of inotify plumbing in tty.zig, and a
+ // shell that never delivers the event simply never reloads.
+ .watch => {},
.quit => {},
};
}
@@ -2174,8 +2179,9 @@ fn drainEffectsWeb(core: *pardes.Pardes, gpa: std.mem.Allocator, g: *Gui) void {
},
// look on a URL → a new tab
.open_link => |url| openLinkWeb(gpa, url.slice()),
- // nothing to spawn/write/resize/save/dump into — all no-ops
- .spawn, .write, .resize_pty, .save_file, .write_dump, .lsp, .quit => {},
+ // nothing to spawn/write/resize/save/dump into, and no filesystem to
+ // watch — all no-ops
+ .spawn, .write, .resize_pty, .save_file, .write_dump, .lsp, .watch, .quit => {},
};
}