about summary refs log tree commit diff stats
path: root/run_tests.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-12-06 21:32:10 -0800
committerKartik K. Agaram <vc@akkartik.com>2023-12-06 22:43:28 -0800
commit19597e7619babdf9a35efd61c9a87bdabd173569 (patch)
tree31cbcc00612487496264be97e1191db6e75306f8 /run_tests.lua
parent01a26cad5f0abcd9aeb010ba91d33bcdb570256f (diff)
downloadlines.love-19597e7619babdf9a35efd61c9a87bdabd173569.tar.gz
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.
Diffstat (limited to 'run_tests.lua')
0 files changed, 0 insertions, 0 deletions
119' href='#n119'>119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197