diff options
Diffstat (limited to 'core/ninep/ctl.zig')
| -rw-r--r-- | core/ninep/ctl.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/ninep/ctl.zig b/core/ninep/ctl.zig index 2b26c3e2..81600582 100644 --- a/core/ninep/ctl.zig +++ b/core/ninep/ctl.zig @@ -571,7 +571,7 @@ fn checkBuiltin(p: *Pardes, req: Req, line: []const u8, scope: builtins.Scope) ? .callstack_depth => arg.len == 0 or (std.fmt.parseInt(u8, arg, 10) catch 0) -% 1 < pardes.lsp.callstack_max_depth, else => probe: { var probe = p.settings; - break :probe probe.apply(setting, if (arg.len > 0) arg else null); + break :probe probe.apply(setting, if (arg.len > 0) arg else null, p.sessionHome()); }, }; if (takes) return null; @@ -638,7 +638,7 @@ fn writeSettingsFor(p: *Pardes, s: *const config.Runtime, w: *std.Io.Writer, cap .locations = located.buffered(), .theme_name = p.theme().name, .theme_file = pardes.colors.loadedThemeFile(p), - .compiled_default_shell = config.defaultShell(), + .compiled_default_shell = p.sessionShell(), .default_dump_dir = pardes.dump.defaultDirectory(&dump_dir) orelse "", .capabilities = caps, .state = s, @@ -669,7 +669,7 @@ pub fn writePager(p: *Pardes, req: Req) Reply { // `~` is home, and `/tmp/../etc` is `/etc`: the +Pager is named in the // directory it is, as any other pane's name is. var home_buf: [4096]u8 = undefined; - const typed = pardes.filesystem.expandHome(std.mem.trim(u8, line, " \t"), &home_buf); + const typed = p.expandHome(std.mem.trim(u8, line, " \t"), &home_buf); const dir = if (typed.len > 0 and typed[0] == '/') std.Io.Dir.path.resolvePosix(p.scratch.allocator(), &.{typed}) catch typed else typed; // A directory that is there, or none (the session's): never a +Pager // named into one missing, nor a relative one quietly taken for none. @@ -1771,7 +1771,7 @@ test "after a ThemeFile the root ctl and DumpConfig say ThemeFile and its path, .platform = @tagName(pardes.platform), .theme_name = p.theme().name, .theme_file = pardes.colors.loadedThemeFile(p), - .compiled_default_shell = config.defaultShell(), + .compiled_default_shell = p.sessionShell(), .hover_delay_frames = config.look_preview_delay_frames, .native_images = false, .capabilities = builtins.capabilities, |
