summaryrefslogtreecommitdiff
path: root/script/core/command/removeSpace.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/command/removeSpace.lua')
-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