elscreen icon indicating copy to clipboard operation
elscreen copied to clipboard

Elscreen doesn't set vscroll correctly

Open sw9 opened this issue 8 years ago • 0 comments

Certain modes such as pdf-view set the window-vscroll variable. When switching between screens, this variable is carried over from one screen to another. This results in the window that you switched back to being scrolled incorrectly.

To reproduce this issue, open some text file in a screen. Create a new screen and open a pdf file. Scroll down a bit without going to a new page. Switch back to the screen with your text file. You will see that the content in the window in this screen has shifted without your directly changing it.

I've added the following snippet to my init file as a workaround: (add-hook 'elscreen-goto-hook (lambda () (set-window-vscroll nil 0)))

sw9 avatar Jan 29 '17 01:01 sw9