summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenny Shields <mail@kennyshields.net>2016-07-09 18:58:14 -0400
committerKenny Shields <mail@kennyshields.net>2016-07-09 18:58:14 -0400
commit42af94a8a7e375f5ffdcc468fcefd5b74d0a0b69 (patch)
treea355c9562d588ecb39081a718109c253a19a364d
parent233a562071dcae02dd93061fe7147390b27e1677 (diff)
downloadstp-42af94a8a7e375f5ffdcc468fcefd5b74d0a0b69.tar.gz
stp-42af94a8a7e375f5ffdcc468fcefd5b74d0a0b69.zip
Fix return value in checkComment function
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index ae7e353..4f30375 100644
--- a/init.lua
+++ b/init.lua
@@ -52,7 +52,7 @@ local function checkComment(str)
else
comment_multiline = true
comment_end_pattern = v
- return trim(str:sub(v:len() + 1))
+ return trim(str:sub(k:len() + 1))
end
end
end