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-20 16:34:09 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-07-20 16:34:09 -0700
commitd61b5dfdeba5a35f1840a4a949c40a7d68bff0bf (patch)
treefafe4c1e1d870e0fbb34e279a9de48ec9184b193 /select.lua
parente2734cd572a8578ee07637f9c5471c0ccce119cc (diff)
downloadtext.love-d61b5dfdeba5a35f1840a4a949c40a7d68bff0bf.tar.gz
use line cache for drawings as well
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 ec48e3f..0b77e9c 100644
--- a/select.lua
+++ b/select.lua
@@ -149,7 +149,7 @@ function Text.delete_selection_without_undo(State)
   local rhs = State.lines[maxl].data:sub(max_offset)
   for i=maxl,minl+1,-1 do
     table.remove(State.lines, i)
-    table.remove(State.text_line_cache, i)
+    table.remove(State.line_cache, i)
   end
   State.lines[minl].data = State.lines[minl].data:sub(1, min_offset-1)..rhs
 end