diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-11-05 19:52:42 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-11-05 19:52:42 -0700 |
commit | 79fd6c4464a86b08ab4b225fc633b2b8381c78e3 (patch) | |
tree | 1fa01716bac7930b768d75bcc030e6b00480e894 | |
parent | fd71bc7d945d991b00369eba716f1313d5806ac3 (diff) | |
download | text.love-79fd6c4464a86b08ab4b225fc633b2b8381c78e3.tar.gz |
purge unused button infrastructure
-rw-r--r-- | edit.lua | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/edit.lua b/edit.lua index 5c487a0..f3a65ec 100644 --- a/edit.lua +++ b/edit.lua @@ -75,7 +75,6 @@ function edit.initialize_state(top, left, right, font_height, line_height) -- c end -- App.initialize_state function edit.draw(State) - State.button_handlers = {} App.color(Text_color) assert(#State.lines == #State.line_cache) if not Text.le1(State.screen_top1, State.cursor1) then @@ -128,11 +127,6 @@ end function edit.mouse_pressed(State, x,y, mouse_button) if State.search_term then return end --? print('press', State.selection1.line, State.selection1.pos) - if mouse_press_consumed_by_any_button_handler(State, x,y, mouse_button) then - -- press on a button and it returned 'true' to short-circuit - return - end - for line_index,line in ipairs(State.lines) do if Text.in_line(State, line_index, x,y) then -- delicate dance between cursor, selection and old cursor/selection |