Fixed issue first mentioned in #771.

This commit is contained in:
Adam Harrison 2022-01-18 21:19:16 -05:00
parent d3e1636881
commit 30cc205cd4
1 changed files with 4 additions and 2 deletions

View File

@ -383,11 +383,13 @@ local commands = {
block = true
end
for _, line1, _, line2 in doc_multiline_selections(true) do
for idx, line1, col1, line2, col2 in doc_multiline_selections(true) do
if block then
local nline1, ncol1, nline2, ncol2
for line = line1, line2 do
block_comment(comment, line, 1, line, #doc().lines[line])
nline1, ncol1, nline2, ncol2 = block_comment(comment, line, 1, line, #doc().lines[line])
end
doc():set_selections(idx, line1, col1, nline2, ncol2)
else
line_comment(comment, line1, line2)
end