some early returns should be asserts

This commit is contained in:
Kartik K. Agaram 2022-06-20 11:50:15 -07:00
parent 809dae205d
commit 861c57b533
1 changed files with 3 additions and 1 deletions

View File

@ -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