about summary refs log tree commit diff stats
path: root/select.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-07-17 08:18:48 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-07-17 08:18:48 -0700
commitb95206fd0d22e63ab94dd8c66f030fbc7588cc22 (patch)
treecf7ad45d8163326e834620018c37a7695738690f /select.lua
parent2fc5bb9a61baf6a5feadeb578f25f2630c4b1b80 (diff)
downloadlines.love-b95206fd0d22e63ab94dd8c66f030fbc7588cc22.tar.gz
drop some redundant args when clearing the cache
Diffstat (limited to 'select.lua')
-rw-r--r--select.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/select.lua b/select.lua
index 1e78269..1240bb5 100644
--- a/select.lua
+++ b/select.lua
@@ -137,7 +137,7 @@ function Text.delete_selection_without_undo(State)
   end
   State.selection1 = {}
   -- delete everything between min (inclusive) and max (exclusive)
-  Text.clear_cache(State.lines[minl])
+  Text.clear_screen_line_cache(State, minl)
   local min_offset = Text.offset(State.lines[minl].data, minp)
   local max_offset = Text.offset(State.lines[maxl].data, maxp)
   if minl == maxl then