╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ Files.zig ────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
1052 while (width > max_width - ellipsis.len) { 1053 const slice = iter.nextCodepointSlice() orelse break; 1054 width -= xitui.width.cellWidth(try std.unicode.utf8Decode(slice)); 1055 start += slice.len; 1056 } 1057 return aa.print(" " ++ ellipsis ++ "{s} ", .{dir[start..]}); 1058 } 1059