fix(windows): fallback to internal paste in system_paste on windows

This commit is contained in:
CJ van den Berg 2024-08-08 22:44:54 +02:00
parent 8abc9c0ee1
commit 4840d2ef60

View file

@ -2028,7 +2028,8 @@ pub const Editor = struct {
self.need_render();
}
pub fn system_paste(_: *Self, _: Context) Result {
pub fn system_paste(self: *Self, _: Context) Result {
if (builtin.os.tag == .windows) return self.paste(.{});
tui.current().rdr.request_system_clipboard();
}