Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 430.86
Broken: version: 2.81 (sub 3), branch: master, commit date: 2019-08-23 02:03, hash: rB232049dd9408
context.space_data.top reports the first visible line in the text editor. When word-wrap is turned on and the text scrolled to the bottom, st.top goes above the amount of lines.
- Open blend file
- Resize blender window so that the text becomes wrapped
- Scroll to the bottom of the text
- Press enter in the console to see the reported top.