From bf8565d2a15ba16ec10c5854bee4a692ffd30d27 Mon Sep 17 00:00:00 2001 From: rxi Date: Thu, 7 May 2020 23:10:27 +0100 Subject: [PATCH] Fixed `doc:toggle-line-comments` for syntax highlighter relocation --- data/core/commands/doc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/core/commands/doc.lua b/data/core/commands/doc.lua index 90c0675..2efb938 100644 --- a/data/core/commands/doc.lua +++ b/data/core/commands/doc.lua @@ -218,8 +218,8 @@ local commands = { end, ["doc:toggle-line-comments"] = function() - if not dv().syntax.comment then return end - local text = dv().syntax.comment .. " " + if not doc().highlighter.syntax.comment then return end + local text = doc().highlighter.syntax.comment .. " " local line1, _, line2 = doc():get_selection(true) local uncomment = true for line = line1, line2 do