pdt icon indicating copy to clipboard operation
pdt copied to clipboard

Split and Word Wrapped editor half scrolls automatically to the editing point of the other half

Open nemesreviz opened this issue 3 years ago • 1 comments

Describe the bug In PHP Editor in a PHP file in horizontally split editor when deleting even one character in one half it scrolls the other half to the same row if the other half is set to word wrap.

Describe the eclipse environment Eclipse IDE for PHP Developers 2021-09 (4.21.0) Eclipse PDT 7.2.0.202005271851

Describe your system

  • OS: win64
  • Version: 7 SP1

To Reproduce

  1. Open a PHP file in PHP Editor
  2. In the main menu choose Window / Editor / Toggle Split Editor (Horizontal)
  3. Scroll one half down (the point is to scroll two halves into different position)
  4. Set Toggle Word Wrap for this half
  5. Click into the other half
  6. Delete any character
  7. See error: the first half scrolls to the same line where you deleted a character in the other half

Expected behavior The other half should stay where I scrolled it before.

Additional context When Word Wrap is not set the error doesn't occur. Sometimes typing something also makes the trick. Haven't tried in vertically split editor. I'm suffering from this for a while, earlier versions had the same behaviour.

nemesreviz avatar Oct 01 '21 21:10 nemesreviz

I can't reproduce this on my system. My OS is Debian. Same Eclipse version: 2021-09 (4.21.0) and PDT version (7.2.0.202005271851).

agmckee avatar Oct 02 '21 10:10 agmckee