summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-29 16:06:23 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-29 16:06:23 +0800
commit6b682f2df0dcd76b70c4357e21045ea2175c146b (patch)
treee0b150f01aef5603d086919920b98daf3844ab9b /script/core
parent6c64d0a0b65bb7f1dbda14a91151f40e06c1adc0 (diff)
downloadlua-language-server-6b682f2df0dcd76b70c4357e21045ea2175c146b.zip
fix
Diffstat (limited to 'script/core')
-rw-r--r--script/core/command/removeSpace.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/command/removeSpace.lua b/script/core/command/removeSpace.lua
index 2ef178f3..b94f9788 100644
--- a/script/core/command/removeSpace.lua
+++ b/script/core/command/removeSpace.lua
@@ -26,7 +26,7 @@ return function (data)
local pos = line:find '[ \t]+$'
if pos then
local start, finish = guide.lineRange(lines, i, true)
- start = start + pos - 1
+ start = start + pos
if isInString(ast, start) then
goto NEXT_LINE
end