redo version checks yet again
commit19597e7619babdf9a35efd61c9a87bdabd173569
authorKartik K. Agaram <vc@akkartik.com>
Thu, 7 Dec 2023 05:32:10 +0000 (6 21:32 -0800)
committerKartik K. Agaram <vc@akkartik.com>
Thu, 7 Dec 2023 06:43:28 +0000 (6 22:43 -0800)
tree31cbcc00612487496264be97e1191db6e75306f8
parent01a26cad5f0abcd9aeb010ba91d33bcdb570256f
redo version checks yet again

I'm starting to feel better after replacing 1 line with 20 and 2 new
bits of global state. I'm now handling two scenarios more explicitly:

* If I change Current_app within key_press, the corresponding text_input
  and key_release events go to the new app. If it's an editor it might
  insert the key, which is undesirable. Putting such handlers in
  key_release now feels overly clever, particularly since it took me
  forever to realize why I was getting stuck in an infinite loop.

* Both 'run' and 'source' can hit the version check, so we need to be
  able to transition from the 'error' app to either. Which
  necessitates yet another global bit of state: Next_app.
Manual_tests.md
app.lua
main.lua