From 292c98935cd4b44e7e66232cc4aa2f207acd3918 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Mon, 14 Jun 2021 20:11:40 -0400 Subject: [PATCH] Fixed recursion error. --- 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 836d9370..0c5ba8fb 100644 --- a/data/core/doc/init.lua +++ b/data/core/doc/init.lua @@ -411,7 +411,7 @@ function Doc:delete_to_cursor(idx, ...) end self:merge_cursors(idx) end -function Doc:delete_to(...) return self:delete_to(nil, ...) end +function Doc:delete_to(...) return self:delete_to_cursor(nil, ...) end function Doc:move_to_cursor(idx, ...) for sidx, line, col in self:get_selections(false, idx) do