summaryrefslogtreecommitdiff
path: root/core/builtins.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/builtins.zig')
-rw-r--r--core/builtins.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/builtins.zig b/core/builtins.zig
index 1e0692a5..a7340352 100644
--- a/core/builtins.zig
+++ b/core/builtins.zig
@@ -1131,13 +1131,13 @@ pub const Collapse = struct {
}
};
-/// Unattach a pane from the pane it answers for: it stays where it is, a
+/// Undock a pane from the pane it answers for: it stays where it is, a
/// pane of its own, and the next search from that pane opens another
/// under it.
-pub const Unattach = struct {
+pub const Undock = struct {
pub fn run(c: Ctx) void {
- if (c.pane.attached_to == null) return c.p.reportFailure(c.id, "Unattach: not attached to a pane");
- c.pane.attached_to = null;
+ if (c.pane.docked_to == null) return c.p.reportFailure(c.id, "Undock: not docked to a pane");
+ c.pane.docked_to = null;
}
};