Fixed issue first mentioned in #771.
This commit is contained in:
parent
d3e1636881
commit
30cc205cd4
|
@ -383,11 +383,13 @@ local commands = {
|
||||||
block = true
|
block = true
|
||||||
end
|
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
|
if block then
|
||||||
|
local nline1, ncol1, nline2, ncol2
|
||||||
for line = line1, line2 do
|
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
|
end
|
||||||
|
doc():set_selections(idx, line1, col1, nline2, ncol2)
|
||||||
else
|
else
|
||||||
line_comment(comment, line1, line2)
|
line_comment(comment, line1, line2)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue