From 42e816b9d465b69110de639b1afd94b3ce1fa5c8 Mon Sep 17 00:00:00 2001 From: ayamir Date: Tue, 16 May 2023 19:19:52 +0800 Subject: [PATCH] fix(wsl): paste selected clipboard content correctly. --- lua/core/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/core/init.lua b/lua/core/init.lua index 18323c6ec..458b50d83 100644 --- a/lua/core/init.lua +++ b/lua/core/init.lua @@ -107,8 +107,8 @@ local clipboard_config = function() ["*"] = "clip.exe", }, paste = { - ["+"] = [[powershell.exe -NoProfile -NoLogo -NonInteractive -MTA -Command [console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))]], - ["*"] = [[powershell.exe -NoProfile -NoLogo -NonInteractive -MTA -Command [console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))]], + ["+"] = [[powershell.exe -NoProfile -NoLogo -NonInteractive -Command [console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))]], + ["*"] = [[powershell.exe -NoProfile -NoLogo -NonInteractive -Command [console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))]], }, cache_enabled = 0, }