make set_selections consistent
This commit is contained in:
parent
e079ddfa37
commit
df0f6fb94c
|
@ -337,8 +337,7 @@ local commands = {
|
||||||
col2 = col2 + (line1 == line2 and (#comment[1] + 1) or 0)
|
col2 = col2 + (line1 == line2 and (#comment[1] + 1) or 0)
|
||||||
doc():insert(line2, col2, " " .. comment[2])
|
doc():insert(line2, col2, " " .. comment[2])
|
||||||
|
|
||||||
col2 = col2 + #comment[2] + 1
|
doc():set_selections(idx, line1, col1, line2, col2 + #comment[2] + 1)
|
||||||
doc():set_selections(idx, line1, col1, line2, col2)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in New Issue