diff --git a/src/buffer/reflow.zig b/src/buffer/reflow.zig index 797d6ab..2ca2ef8 100644 --- a/src/buffer/reflow.zig +++ b/src/buffer/reflow.zig @@ -8,8 +8,6 @@ pub fn reflow(allocator: std.mem.Allocator, text: []const u8, width: usize) erro var output: std.Io.Writer.Allocating = .init(allocator); const writer = &output.writer; - std.log.info("reflow @{d}", .{width}); - var first = true; var line_len: usize = 0; for (words) |word| { diff --git a/src/tui/editor.zig b/src/tui/editor.zig index 86d2e0c..8eb7af3 100644 --- a/src/tui/editor.zig +++ b/src/tui/editor.zig @@ -7056,6 +7056,7 @@ pub const Editor = struct { const sfa_allocator = sfa.get(); const cut_text = copy_selection(root, sel, sfa_allocator, self.metrics) catch return error.Stop; defer sfa_allocator.free(cut_text); + std.log.info("reflow @{d}", .{reflow_width}); const reflowed = Buffer.reflow(sfa_allocator, cut_text, reflow_width) catch return error.Stop; defer sfa_allocator.free(reflowed); root = try self.delete_selection(root, cursel, allocator);