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

Invalid scroll position on paste among very long wrapped lines #331

Open ProgerXP opened 3 years ago

ProgerXP commented 3 years ago
  1. Enable word wrapping
  2. Fill the document with many very long wrapped lines
  3. Copy and Paste a very long line somewhere in the middle of the document

As a result, scroll position will not show any portion of the pasted line (this is easy to see if you enable Highlight Current Line). If you perform any action (like press an arrow key) then scroll position will become correct.

This bug will be stronger if prior to Paste you scroll away from the position of the caret (where new text will be inserted) so that it becomes invisible.

This doesn't occur if you Paste a short line.

This might be related to various values of ScrollYCaretPolicy #41 but probably not.

Is this a Scintilla bug/feature?

cshnik commented 3 years ago

Cannot Reproduce. Please provide the test file and sample string, video for the issue (if available).