From b065b52067694195a60eb68e4b6091d4ee7ccd38 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Thu, 10 Jun 2021 11:29:21 -0400 Subject: [PATCH] Ensured that textual inputs sort cursors so that we don't get *real* weird behaviour. --- data/core/doc/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/core/doc/init.lua b/data/core/doc/init.lua index b9cfca5b..c8b541e9 100644 --- a/data/core/doc/init.lua +++ b/data/core/doc/init.lua @@ -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)