diff options
Diffstat (limited to 'src/tagline.zig')
| -rw-r--r-- | src/tagline.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tagline.zig b/src/tagline.zig index 317c1c17..e14feab4 100644 --- a/src/tagline.zig +++ b/src/tagline.zig @@ -313,7 +313,7 @@ pub fn tagWidth(p: *const Pardes, id: usize) usize { pub fn shownTag(p: *Pardes, arena: std.mem.Allocator, pane: *Pane) !Shown { const whole = try tagText(p, arena, pane); - const id = p.paneIdOf(pane) orelse return .{ .text = whole, .soft = &.{} }; + const id = panes.paneIdOf(p, pane) orelse return .{ .text = whole, .soft = &.{} }; return wrapTag(arena, whole, tagWidth(p, id)); } @@ -373,7 +373,7 @@ pub fn draftName(p: *Pardes, pane: *Pane, col: usize) void { /// draft visible on failure so the user can correct it or cancel with Esc. pub fn commitTagName(p: *Pardes, pane: *Pane) bool { if (pane.prompt != .name) return true; - const id = p.paneIdOf(pane) orelse return false; + const id = panes.paneIdOf(p, pane) orelse return false; const name = pane.input.own orelse ""; if (name.len == 0 or name[name.len - 1] == '/' or !std.unicode.utf8ValidateSlice(name)) { p.reportError(id, "name", error.InvalidName); |
