Weird scroll behavior in the Editor

Advertisement

Sopor
Sopor avatar
Joined:
Posts:
63
Location:
Sweden

Weird scroll behavior in the Editor

When using the Editor in WinSCP i noticed a weird scroll behavior.

If the line will get more than fits in the window the scrollbar moves, but when i delete lines again it won't move back until i click with the mouse pointer on the scrollbar.

WinSCP 5.20.4.RC and it is the same in 5.19.6.
Description: I have created a video for you to watch.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,392
Location:
Prague, Czechia

Re: Weird scroll behavior in the Editor

Thanks for your report.
Though I was not able to reproduce it.
  1. I open a file in an editor (local file if it matters). The contents is small enough to fit the window. I press Ctrl+End to move the cursor to the very end.
  2. I press Enter several times to add empty lines so that the contents does not fit anymore. The original contents scroll out of the view and the vertical scroll bar appears.
  3. I press Back several times to remove the empty lines. The scrollbar changes with every deleted line as expected.
  4. Once I delete enough lines for the whole contents to fix the window, all contents scroll to the view and the scrollbar disappears.
Screenshots of all four steps are attached.

What version of Windows are you using?

1.png

2.png

3.png

4.png

Reply with quote

martin
Site Admin
martin avatar

Ok, I see. So the problem is that deleting the last line should scroll the view up, so that the cursor stays on the bottom of the editor, to match the scrollbar.

Reply with quote

Sopor
Sopor avatar

First I thought there was a function as in Notepad++ called "Enable scrolling beyond last line" (really nice if you could add that).

Maybe it is only me that experience it as weird?

Reply with quote

Advertisement

You can post new topics in this forum