diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-06-12 08:26:37 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-06-12 09:04:21 -0700 |
commit | 059efba79d285e0760837f5b85dcaaae49c94f75 (patch) | |
tree | 040ea3e00c0a11465dd8ae3deccd297f06835e23 /text.lua | |
parent | 9ada7cf833616846c53c5e7c1c9c824e54e567d9 (diff) | |
download | text.love-059efba79d285e0760837f5b85dcaaae49c94f75.tar.gz |
override mouse state lookups in tests
If I'd had this stuff in my test harness earlier, two recent commits would have failed tests and given me early warning: ff88238ff1 ff88a2a927
Diffstat (limited to 'text.lua')
-rw-r--r-- | text.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/text.lua b/text.lua index 492b682..e636564 100644 --- a/text.lua +++ b/text.lua @@ -136,7 +136,7 @@ function Text.compute_fragments(line, line_width) end function Text.textinput(t) - if love.mouse.isDown('1') then return end + if App.mouse_down('1') then return end if App.ctrl_down() or App.alt_down() or App.cmd_down() then return end if Selection1.line then Text.delete_selection() |