From 39d4197a42681ee283efc9c497de837760c2d45d Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Thu, 10 Oct 2024 23:44:13 +0200 Subject: [PATCH] fix: workaround indent size limitation in indent_cursor --- src/tui/editor.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui/editor.zig b/src/tui/editor.zig index d808e0e..90d5f60 100644 --- a/src/tui/editor.zig +++ b/src/tui/editor.zig @@ -2542,7 +2542,7 @@ pub const Editor = struct { pub const toggle_comment_meta = .{ .description = "Toggle comment" }; fn indent_cursor(self: *Self, root: Buffer.Root, cursor: Cursor, allocator: Allocator) error{Stop}!Buffer.Root { - const space = " "; + const space = " "; var cursel: CurSel = .{}; cursel.cursor = cursor; const cols = self.indent_size - find_first_non_ws(root, cursel.cursor.row, self.metrics) % self.indent_size;