fix: helix copy now delegates properly memory to editor

This commit is contained in:
Igor Támara 2025-10-09 20:09:58 -05:00 committed by CJ van den Berg
parent 00bbeaedf9
commit 90c08c4287

View file

@ -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)});