From 092104f1f97e9894bc2f038e52676af26aef67dd Mon Sep 17 00:00:00 2001 From: amzxyz Date: Sat, 3 Jan 2026 14:35:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B6=85=E7=BA=A7=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E6=94=BE=E5=BC=80=E6=9C=AB=E5=B0=BE~=EF=BC=8C=E4=BB=96?= =?UTF-8?q?=E4=BB=A3=E8=A1=A8=E5=8D=95=E8=AF=8D=E6=9C=AA=E5=AE=8C=E5=85=A8?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E5=AE=8C=E6=88=90=E7=9A=84=E5=B0=BE=E9=83=A8?= =?UTF-8?q?=E8=A7=86=E8=A7=89=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/super_comment_preedit.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/super_comment_preedit.lua b/lua/super_comment_preedit.lua index 6b1e89a..87c797f 100644 --- a/lua/super_comment_preedit.lua +++ b/lua/super_comment_preedit.lua @@ -496,7 +496,11 @@ function ZH.func(input, env) final_comment = fz_comment end else - final_comment = "" + if initial_comment and string.find(initial_comment, "~") then --保留尾部临时英文标记 + final_comment = initial_comment + else + final_comment = "" + end end -- ② 拆分注释