about summary refs log tree commit diff stats
path: root/source_text.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2024-07-17 14:21:23 -0700
committerKartik K. Agaram <vc@akkartik.com>2024-07-17 14:21:23 -0700
commit1d3751fb823916bea290ec4503cbac2a0d43ac83 (patch)
tree2c080f8ddf97c141cee81c9cd731b104a8a80d8f /source_text.lua
parentc7c54a00b69eeffe1b21cc0db47a764089bdf8bc (diff)
downloadview.love-1d3751fb823916bea290ec4503cbac2a0d43ac83.tar.gz
clean up an unnecessary mutation
Introduced in commit 3ffc2ed8f on 2022-06-19 and obviated in commit
6dfe954c02 on 2022-07-07.
Diffstat (limited to 'source_text.lua')
-rw-r--r--source_text.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/source_text.lua b/source_text.lua
index 9cc03ea..8d169a7 100644
--- a/source_text.lua
+++ b/source_text.lua
@@ -230,7 +230,6 @@ function Text.keychord_press(State, chord)
     local before_line = State.cursor1.line
     local before = snapshot(State, before_line)
     Text.insert_return(State)
-    State.selection1 = {}
     if State.cursor_y > App.screen.height - State.line_height then
       Text.snap_cursor_to_bottom_of_screen(State, State.left, State.right)
     end