Ensured that textual inputs sort cursors so that we don't get *real* weird behaviour.

This commit is contained in:
Adam Harrison 2021-06-10 11:29:21 -04:00
parent 0f229b039d
commit b065b52067
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ end
function Doc:text_input(text, idx)
for sidx, line1, col1, line2, col2 in self:get_selections() do
for sidx, line1, col1, line2, col2 in self:get_selections(true) do
if not idx or idx == sidx then
if line1 ~= line2 or col1 ~= col2 then
self:delete_to_cursor(sidx)