Fixed doc:toggle-line-comments for syntax highlighter relocation

This commit is contained in:
rxi 2020-05-07 23:10:27 +01:00
parent 95bdb07d49
commit bf8565d2a1

View file

@ -218,8 +218,8 @@ local commands = {
end, end,
["doc:toggle-line-comments"] = function() ["doc:toggle-line-comments"] = function()
if not dv().syntax.comment then return end if not doc().highlighter.syntax.comment then return end
local text = dv().syntax.comment .. " " local text = doc().highlighter.syntax.comment .. " "
local line1, _, line2 = doc():get_selection(true) local line1, _, line2 = doc():get_selection(true)
local uncomment = true local uncomment = true
for line = line1, line2 do for line = line1, line2 do