fix: helix copy now delegates properly memory to editor
This commit is contained in:
parent
00bbeaedf9
commit
90c08c4287
1 changed files with 1 additions and 1 deletions
|
@ -368,7 +368,7 @@ const cmds_ = struct {
|
||||||
try writer.writeAll(copy_text);
|
try writer.writeAll(copy_text);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const text = buffer.written();
|
const text = buffer.toOwnedSlice() catch &.{};
|
||||||
if (text.len > 0) {
|
if (text.len > 0) {
|
||||||
if (text.len > 100) {
|
if (text.len > 100) {
|
||||||
ed.logger.print("copy:{f}...", .{std.ascii.hexEscape(text[0..100], .lower)});
|
ed.logger.print("copy:{f}...", .{std.ascii.hexEscape(text[0..100], .lower)});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue