fix(windows): fallback to internal paste in system_paste on windows
This commit is contained in:
parent
8abc9c0ee1
commit
4840d2ef60
1 changed files with 2 additions and 1 deletions
|
@ -2028,7 +2028,8 @@ pub const Editor = struct {
|
||||||
self.need_render();
|
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();
|
tui.current().rdr.request_system_clipboard();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue