From 90c08c4287a57e9fcb219ffd09a273d1b37378c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20T=C3=A1mara?= Date: Thu, 9 Oct 2025 20:09:58 -0500 Subject: [PATCH] fix: helix copy now delegates properly memory to editor --- src/tui/mode/helix.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui/mode/helix.zig b/src/tui/mode/helix.zig index 9e1abe9..9a0e589 100644 --- a/src/tui/mode/helix.zig +++ b/src/tui/mode/helix.zig @@ -368,7 +368,7 @@ const cmds_ = struct { try writer.writeAll(copy_text); } }; - const text = buffer.written(); + const text = buffer.toOwnedSlice() catch &.{}; if (text.len > 0) { if (text.len > 100) { ed.logger.print("copy:{f}...", .{std.ascii.hexEscape(text[0..100], .lower)});