ProgerXP / Notepad2e

Word highlighting, simultaneous editing, split views, math evaluation, un/grep, comment reformatting, UAC elevation, complete regexps (PCRE), Lua lexers, DPI awareness and more (XP+)
Other
372 stars 52 forks source link

Split views scrolled after closing Customize Schemes #418

Open ProgerXP opened 2 years ago

ProgerXP commented 2 years ago

Open new window, open some long file, scroll it down, press Ctrl+F12, then close the dialog - the file isn't scrolled. Now make a split view and repeat - both views will be scrolled. Interestingly, if you close the split view (so that only one view remains), the behaviour will start happening even in this case.

Looks similar to #405.

cshnik commented 7 months ago

Cannot reproduce. Please provide video if the problem remains.

cshnik commented 6 months ago

There was a bug in Scintilla which caused unexpected scrolling when renewing document styling in case of opened file with word wrap mode enabled.

https://github.com/ProgerXP/Notepad2e/assets/8019354/8015b997-2523-4587-bffb-9004dc3c6e41

Fixed.

cshnik commented 6 months ago

There is still a visual defect: vertical scrolling slider jump few times when applying document styling in word wrap mode. The actual cause is that word wrapping formatting updates in paint()-subproc iteratively and requires several calls before formatting become correct.

https://github.com/ProgerXP/Notepad2e/assets/8019354/4c2cb672-badd-4e2d-8960-6f5c87cc6796