diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-06-20 11:50:15 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-06-20 11:51:07 -0700 |
commit | 861c57b5337150034c8f44af1b5224950276b83b (patch) | |
tree | fdaa5c2bd2b309321229496d2e8aea6b2f07156f /text.lua | |
parent | 809dae205d0f32d170223144b1d0a533434bb6ee (diff) | |
download | text.love-861c57b5337150034c8f44af1b5224950276b83b.tar.gz |
some early returns should be asserts
Diffstat (limited to 'text.lua')
-rw-r--r-- | text.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/text.lua b/text.lua index f21c7bc..be7ecf7 100644 --- a/text.lua +++ b/text.lua @@ -139,7 +139,9 @@ end function Text.textinput(t) if App.mouse_down(1) then return end - if App.ctrl_down() or App.alt_down() or App.cmd_down() then return end + assert(not App.ctrl_down()) + if App.alt_down() then return end + assert(not App.cmd_down()) if Selection1.line then Text.delete_selection() end |