some early returns should be asserts
This commit is contained in:
parent
809dae205d
commit
861c57b533
4
text.lua
4
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
|
||||
|
|
Loading…
Reference in New Issue