Editor: Script verifier jumps to wrong line when word wrapping affects the script
## Issue Description When clicking on a script issue the editor is supposed to jump to the corresponding line (maybe even position).The given line in the issue list is correct. But if word wrap is active the reference to the line is off when you click on the entry to jump to the position in the script (Ignore the typo please). With word wrap: ![Wordwrap_On](/uploads/480ac4ef274a321fb2b6843b693efeae/Wordwrap_On.png){width=435 height=439} Without word wrap: ![Wordwrap_Off](/uploads/b4a1f7c1abbf9329a055ea4d443f58dc/Wordwrap_Off.png){width=900 height=357} ## Steps to Reproduce 1. Create a new script with this content: ``` Begin TestScript short VarA MessageBox "This is a test for a really long script line that really wants to be word wrapped. Please wrap this line until the error occurs." if ( VarA = 1) ;Something happening here Endif End TestScript ``` 2. Play with the size of the subview until word wrap kicks in 3. Click on the shown error it will jump to the wrong line and position 4. Make it bigger so word wrap is not active anymore 5. It will work as expected ## System Information * **OpenMW Version:** 0.50 Stable * **Operating System & Version:** Windows 11 * **Morrowind** Version: Steam * **Language:** English * **Addons:** Not relevant
issue