Fix deleting indentation with multiple cursors (#1670)
This commit is contained in:
parent
da64a99f18
commit
3972f10059
|
@ -340,10 +340,11 @@ local commands = {
|
||||||
local text = dv.doc:get_text(line1, 1, line1, col1)
|
local text = dv.doc:get_text(line1, 1, line1, col1)
|
||||||
if #text >= indent_size and text:find("^ *$") then
|
if #text >= indent_size and text:find("^ *$") then
|
||||||
dv.doc:delete_to_cursor(idx, 0, -indent_size)
|
dv.doc:delete_to_cursor(idx, 0, -indent_size)
|
||||||
return
|
goto continue
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
dv.doc:delete_to_cursor(idx, translate.previous_char)
|
dv.doc:delete_to_cursor(idx, translate.previous_char)
|
||||||
|
::continue::
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue