notepad-plus-plus-legacy/PowerEditor
Christophe Meriaux 9387dcdaef
Fix restoring line position issue while document is wrapped
If you switch between tabs while wrap mode is enable, text jump to another lines.
It's an old bug, fixed in v7.5.9, but it had performance regression so it was reverted in v6.0.0.

It's been one year, and I'm back.
This works whatever the size of the file.
There isn't any performance regression because we don't use SCI_ENSUREVISIBLE scintilla command.

In case wrap option on, The restore position function is done in **twice** steps.

- First step: set selection, set anchor, set xoffset...
- Second step: once Scintilla has send the notification SCN_PAINTED, we can scroll several lines to set the first visible line to the correct wrapped line.

Keep in mind that Line wrapping is a background activity that takes time, specially for huge file.

Fix #2078, fix #2576, fix #3570, fix #4825, fix #4881, close #7781
2020-01-06 10:18:46 +01:00
..
bin Update readme.txt 2019-12-08 23:33:30 +01:00
gcc Update makefile for mingw gcc builds 2019-11-07 22:13:47 +01:00
installer Update localization files 2019-12-31 23:53:10 +01:00
misc/chameleon Remove the old icon 2016-09-21 09:06:22 +02:00
scintilla.original.forUpdating Upgrade Scintilla from 4.1.4 to 4.2.0 2019-07-22 13:08:41 +02:00
src Fix restoring line position issue while document is wrapped 2020-01-06 10:18:46 +01:00
Test/FunctionList Remove BOM from 2 localization files 2019-03-15 03:13:31 +01:00
visual.net Use standard C++11 mutex 2019-08-25 23:34:30 +02:00