Closed microbit-matt-hillsdon closed 1 year ago
Preview build will be at https://review-python-editor-v3.microbit.org/fix-1060/
I think this fix is fine but I'd like to look more carefully at what we do with single line bodies. There's code that looks like it special cases them but I don't think it's functioning as intended.
I think this fix is fine but I'd like to look more carefully at what we do with single line bodies. There's code that looks like it special cases them but I don't think it's functioning as intended.
This is now addressed.
Closes https://github.com/microbit-foundation/python-editor-v3/issues/1060
Can be reproduced with
if True:pass
at EOF and, importantly, outside the viewport (so prepended with blank lines, for example).Also changes the highlighting in this case, see before/after images on #1060.