diff options
Diffstat (limited to 'core/Term.zig')
| -rw-r--r-- | core/Term.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Term.zig b/core/Term.zig index ce462d81..fde36420 100644 --- a/core/Term.zig +++ b/core/Term.zig @@ -289,14 +289,14 @@ pub fn editRows(s: *State, arena: std.mem.Allocator, first: usize, count: usize) /// How many bytes of one of its rows, as `viewport` and `textRows` give it /// uncut, are the prompt it starts with: the prompt's columns, measured in /// the row's text as the core measures a display. -pub fn promptPrefix(s: ?*State, row: i32, raw: []const u8) usize { +pub fn promptPrefix(tab: u16, s: ?*State, row: i32, raw: []const u8) usize { const state = s orelse return 0; if (row < 0) return 0; const cut = the().promptCut(state.impl, row) orelse return 0; return switch (cut) { .keep => 0, .blank => raw.len, - .cut => |cols| @min(raw.len, File.rawAtDisplay(raw, cols)), + .cut => |cols| @min(raw.len, File.rawAtDisplay(tab, raw, cols)), }; } |
