Page MenuHome

Text Editor (python) - st.top reports unclamped values with word-wrap enabled
Open, Needs Triage by DeveloperPublic

Description

System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 430.86

Blender Version
Broken: version: 2.81 (sub 3), branch: master, commit date: 2019-08-23 02:03, hash: rB232049dd9408
Worked: (optional)

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.

  1. Open blend file
  2. Resize blender window so that the text becomes wrapped
  3. Scroll to the bottom of the text
  4. Press enter in the console to see the reported top.

Details

Type
Bug