Lua prompt support and plugin improvements

This commit is contained in:
Zachary Yedidia
2019-12-24 17:17:44 -05:00
parent 3b306c1d3b
commit 94ff79e7b2
8 changed files with 87 additions and 25 deletions

View File

@@ -74,7 +74,7 @@ function commentSelection(bp, startLine, endLine)
end
end
function comment(bp)
function comment(bp, args)
if bp.Cursor:HasSelection() then
if bp.Cursor.CurSelection[1]:GreaterThan(-bp.Cursor.CurSelection[2]) then
local endLine = bp.Cursor.CurSelection[1].Y