summaryrefslogtreecommitdiff
path: root/core/Core.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Core.zig')
-rw-r--r--core/Core.zig18
1 files changed, 6 insertions, 12 deletions
diff --git a/core/Core.zig b/core/Core.zig
index e736d43b..55b3682f 100644
--- a/core/Core.zig
+++ b/core/Core.zig
@@ -300,7 +300,7 @@ theme_file_path: config.Settings.Text(limits.host_path_cap) = .{},
/// what a failed ThemeFile goes back to (colors.revertThemeFile).
theme_file_loaded: config.Settings.Text(limits.host_path_cap) = .{},
theme_file_generation: u32 = 0,
-theme_file_pane: u8 = 0,
+theme_file_pane: Pane.Id = .at(0),
chrome: colors.ChromeTheme = colors.initial_chrome,
/// Every drawn frame's timings (FrameStats: the Debug box, PARDES_FRAMES):
/// its runner's (`Options.frames`), which its frontend writes as it draws
@@ -469,11 +469,11 @@ pub const replica = .{
"tape",
},
.derived = .{ "shell_rows", "diff_output", "locations_cache", "retired_panes", "tty_filter_palette", "body_chrome" },
- // The host's handles, the 9P server's fids and log, the state file
- // every session of the user shares (and Recent read from it), this
- // session's closed panes, and the files of a host with no file
- // system of its own.
- .authority = .{ "host", "fs", "store", "recent", "db", "fallback" },
+ // The host's handles, the state file every session of the user
+ // shares (and Recent read from it), this session's closed panes, and
+ // the files of a host with no file system of its own. (The 9P
+ // server's own part of `fs` says so in fs.Namespace.)
+ .authority = .{ "host", "store", "recent", "db", "fallback" },
.len = .{ .{ "look_src", "n_look_src" }, .{ "session_dir", "session_dir_len" }, .{ "session_home", "session_home_len" }, .{ "session_shell", "session_shell_len" } },
};
@@ -1571,12 +1571,6 @@ fn stepInner(p: *Pardes) void {
/// local socket costs microseconds and not a vsync.
pub const serveFs = pardes.tape.taped(serveFsInner);
fn serveFsInner(p: *Pardes, req: ctlfs.Req) ctlfs.Reply {
- // The held write of an Edit whose commands run, asked again by a
- // retry of its park: still waiting, or its answer, never run twice.
- if (p.fs.edit_hold) |*h| if (h.names(req)) {
- if (!h.done) return .{ .tag = req.tag, .status = .again };
- return filesystem.EditHold.answer(&p.fs);
- };
defer pardes.panes.File.syncTwins(p);
if (!ctlfs.changesPane(p, req)) return ctlfs.handle(p, req);
// An address, a limit or the mark flag is nothing drawn: a script's