apprt/gtk-ng: paste can't remember

pull/8030/head
Mitchell Hashimoto 2025-07-22 13:33:14 -07:00
parent 4d39f2728a
commit 7e329d3e4c
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 5 additions and 2 deletions

View File

@ -2091,7 +2091,10 @@ const Clipboard = struct {
ClipboardConfirmationDialog,
.{
.request = &req,
.@"can-remember" = true,
.@"can-remember" = switch (req) {
.osc_52_read, .osc_52_write => true,
.paste => false,
},
.@"clipboard-contents" = contents_buf,
},
);
@ -2166,7 +2169,7 @@ const Clipboard = struct {
if (remember) switch (req.*) {
.osc_52_read => surface.config.clipboard_read = .deny,
.osc_52_write => surface.config.clipboard_write = .deny,
.paste => {},
.paste => @panic("paste should not be rememberable"),
};
}