summaryrefslogtreecommitdiff
path: root/script/core/keyword.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/keyword.lua')
-rw-r--r--script/core/keyword.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/core/keyword.lua b/script/core/keyword.lua
index b8e37605..4b43efe5 100644
--- a/script/core/keyword.lua
+++ b/script/core/keyword.lua
@@ -275,8 +275,8 @@ until $1"
if first == 'end'
or first == 'else'
or first == 'elseif' then
- local startRow = guide.positionOf(lines, info.start)
- local finishRow = guide.positionOf(lines, pos)
+ local startRow = guide.positionOf(info.start)
+ local finishRow = guide.positionOf(pos)
local startSp = info.text:match('^%s*', lines[startRow].start + 1)
local finishSp = info.text:match('^%s*', lines[finishRow].start + 1)
if startSp == finishSp then