fix: editor paste

This commit is contained in:
CJ van den Berg 2024-11-22 13:43:15 +01:00
parent 279789d4fa
commit a9e5c5b262
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
6 changed files with 14 additions and 12 deletions

View file

@ -285,8 +285,10 @@ fn receive_safe(self: *Self, from: tp.pid_ref, m: tp.message) !void {
if (try m.match(.{ "system_clipboard", tp.extract(&text) })) {
try self.dispatch_flush_input_event();
try command.executeName("paste", command.fmt(.{text}));
return;
return if (command.get_id("mini_mode_paste")) |id|
command.execute(id, .{})
else
command.executeName("paste", command.fmt(.{text}));
}
if (try m.match(.{"render"})) {