summaryrefslogtreecommitdiff
path: root/src/builtins.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/builtins.zig')
-rw-r--r--src/builtins.zig12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/builtins.zig b/src/builtins.zig
index 398e699d..0ad7d998 100644
--- a/src/builtins.zig
+++ b/src/builtins.zig
@@ -1248,7 +1248,7 @@ pub const Save = struct {
// A `+` name is a generated pane's (+Tutor), no file of its own:
// a bare Save asks for a path, as a +New scratch's does.
if (c.pane.file) |file| if (file.output == null and !std.mem.startsWith(u8, std.fs.path.basename(file.path), "+")) return exec.saveFile(c.p, c.id);
- if (c.pane.file != null or c.pane.isTerminal()) c.p.startPrompt(c.pane, &c.pane.body, .save);
+ if (c.pane.file != null or c.pane.isTerminal()) panes.startPrompt(c.p, c.pane, &c.pane.body, .save);
}
};
@@ -1550,7 +1550,7 @@ pub const Tutor = struct {
pub const scope: Scope = .session;
pub fn run(c: Ctx) void {
const free = c.p.freeSlot() orelse return c.p.reportError(c.id, "Tutor", error.NoPaneSlots);
- _ = c.p.openTutorView(free) catch return;
+ _ = panes.openTutorView(c.p, free) catch return;
exec.placeNew(c.p, c.id, c.id, free, .doc); // a doc like any other
}
};
@@ -1583,7 +1583,7 @@ pub const Config = struct {
if (real != null) return look.lookAt(c.p, c.id, path);
// Not there yet: a pane named for it, which Save makes.
const free = c.p.freeSlot() orelse return c.p.reportError(c.id, "Config", error.NoPaneSlots);
- c.p.newScratchFor(c.id, .scratch);
+ panes.newScratchFor(c.p, c.id, .scratch);
if (c.p.panes[free] == null) return;
@import("ninep/pane.zig").nameBuffer(c.p, free, path, false) catch |err| return c.p.reportError(c.id, "Config", err);
c.p.active = free;
@@ -1852,7 +1852,7 @@ pub const Last = struct {
}
// Nothing on the jumplist to go back to, which is the ordinary case
// for a pane that opened beside this one and was never focused.
- if (c.p.neighbourPane(c.id)) |next| look.focusPaneLine(c.p, next, .{ .line = 0, .col = 0 }, .keep);
+ if (panes.neighbourPane(c.p, c.id)) |next| look.focusPaneLine(c.p, next, .{ .line = 0, .col = 0 }, .keep);
}
};
@@ -1992,7 +1992,7 @@ pub const Rename = struct {
pub fn run(c: Ctx) void {
const a = std.mem.trim(u8, c.arg orelse "", " \t\r\n");
if (a.len > 0) return c.p.lspRequest(c.id, .rename, a);
- c.p.startPrompt(c.pane, &c.pane.body, .{ .search = config.rename_marker });
+ panes.startPrompt(c.p, c.pane, &c.pane.body, .{ .search = config.rename_marker });
}
};
@@ -2003,7 +2003,7 @@ pub const WsSymbols = struct {
pub fn run(c: Ctx) void {
const a = std.mem.trim(u8, c.arg orelse "", " \t\r\n");
if (a.len > 0) return c.p.lspRequest(c.id, .workspace_symbols, a);
- c.p.startPrompt(c.pane, &c.pane.body, .{ .search = config.symbol_marker });
+ panes.startPrompt(c.p, c.pane, &c.pane.body, .{ .search = config.symbol_marker });
}
};