From 4840d2ef60176e7110f67bdbd22d652653dec7ca Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Thu, 8 Aug 2024 22:44:54 +0200 Subject: [PATCH] fix(windows): fallback to internal paste in system_paste on windows --- src/tui/editor.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tui/editor.zig b/src/tui/editor.zig index f56afee..060210b 100644 --- a/src/tui/editor.zig +++ b/src/tui/editor.zig @@ -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(); }