~akkartik/luaML.love

1d3751fb823916bea290ec4503cbac2a0d43ac83 — Kartik K. Agaram a month ago c7c54a0
clean up an unnecessary mutation

Introduced in commit 3ffc2ed8f on 2022-06-19 and obviated in commit
6dfe954c02 on 2022-07-07.
2 files changed, 0 insertions(+), 2 deletions(-)

M source_text.lua
M text.lua
M source_text.lua => source_text.lua +0 -1
@@ 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

M text.lua => text.lua +0 -1
@@ 156,7 156,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