From a4b5328502ddf2e1602a3878b69a822c43d53c40 Mon Sep 17 00:00:00 2001 From: Jarlyyn Date: Fri, 30 Aug 2024 16:14:18 +0800 Subject: [PATCH 1/2] update --- src/hclua/compontent/lineutils/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hclua/compontent/lineutils/README.md b/src/hclua/compontent/lineutils/README.md index 29ecf30..d1b392c 100644 --- a/src/hclua/compontent/lineutils/README.md +++ b/src/hclua/compontent/lineutils/README.md @@ -48,7 +48,7 @@ utf8显示宽指ascii字符计为宽度1,非ascii记为宽度2。 第二个参数为切片的开始位置,应该为正整数 -第三个参数为切片的长途,应该为正整数 +第三个参数为切片的长度,应该为正整数 第四个参数为最大行数。默热是保留所有行。 From 3374196ba99ea98ba26840028a2234fdacac469e Mon Sep 17 00:00:00 2001 From: Jarlyyn Date: Fri, 6 Jun 2025 00:59:56 +0800 Subject: [PATCH 2/2] update --- src/hclua/lib/line/line.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hclua/lib/line/line.lua b/src/hclua/lib/line/line.lua index 3c41787..2e13c2e 100644 --- a/src/hclua/lib/line/line.lua +++ b/src/hclua/lib/line/line.lua @@ -152,7 +152,7 @@ return function(runtime) return nil end if word ~= nil then - line:pushWord(word) + line:appendWord(word) end word = M.Word:new() word.Color = fg @@ -165,7 +165,7 @@ return function(runtime) elseif left > 5 and next == '1' then -- #1RRGGBBRRGGBB0格式 if word ~= nil then - line:pushWord(word) + line:appendWord(word) end word = M.Word:new() index = index + 2