fix: move internal clipboard from buffer local to session wide
closes #287
This commit is contained in:
parent
a227eb925c
commit
5286975257
3 changed files with 21 additions and 16 deletions
|
@ -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});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue