~jamii/focus

9b5cf2138fc3dc55f7e9ca4d5cd2412b6e77a726 — Jamie Brandon 1 year, 4 days ago dbe0959
Silly old function
1 files changed, 1 insertions(+), 4 deletions(-)

M lib/focus/buffer.zig
M lib/focus/buffer.zig => lib/focus/buffer.zig +1 -4
@@ 500,10 500,7 @@ pub const Buffer = struct {
    }

    pub fn countLines(self: *Buffer) usize {
        var lines: usize = 0;
        var iter = std.mem.split(self.bytes.items, "\n");
        while (iter.next()) |_| lines += 1;
        return lines;
        return self.line_ranges.items.len;
    }

    pub fn getFilename(self: *Buffer) ?[]const u8 {