Notepad2e icon indicating copy to clipboard operation
Notepad2e copied to clipboard

Invalid scroll position on paste among very long wrapped lines

Open ProgerXP opened this issue 4 years ago • 1 comments
trafficstars

  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?

ProgerXP avatar Dec 30 '20 19:12 ProgerXP

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

cshnik avatar Feb 01 '21 21:02 cshnik