fix: move internal clipboard from buffer local to session wide

closes #287
This commit is contained in:
CJ van den Berg 2025-08-22 22:18:57 +02:00
parent a227eb925c
commit 5286975257
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 21 additions and 16 deletions

View file

@ -267,7 +267,7 @@ const cmds_ = struct {
var text: []const u8 = undefined;
if (!(ctx.args.buf.len > 0 and try ctx.args.match(.{tp.extract(&text)}))) {
if (ed.clipboard) |text_| text = text_ else return;
if (tui.get_clipboard()) |text_| text = text_ else return;
}
ed.logger.print("paste: {d} bytes", .{text.len});