diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2024-07-08 14:10:49 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2024-07-08 14:10:49 -0700 |
commit | c064f0a97df56c28d9d76a226ce152d97e40450a (patch) | |
tree | 998977f1b0f0be0581519275de2e8ef16ce775dc /source_edit.lua | |
parent | 5a74b6938e5a37b8b2d1f8e49039cf1cbae46a50 (diff) | |
download | text.love-c064f0a97df56c28d9d76a226ce152d97e40450a.tar.gz |
delete some seemingly redundant code
We're patching line_cache and then immediately clearing it using Text.redraw_all.
Diffstat (limited to 'source_edit.lua')
-rw-r--r-- | source_edit.lua | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/source_edit.lua b/source_edit.lua index 9b3b7ba..fd8e321 100644 --- a/source_edit.lua +++ b/source_edit.lua @@ -441,7 +441,6 @@ function edit.keychord_press(State, chord, key) State.cursor1 = deepcopy(src.cursor) State.selection1 = deepcopy(src.selection) patch(State.lines, event.after, event.before) - patch_placeholders(State.line_cache, event.after, event.before) -- invalidate various cached bits of lines State.lines.current_drawing = nil Text.redraw_all(State) -- if we're scrolling, reclaim all line caches to avoid memory leaks |