Skip to content

Elscreen doesn't set vscroll correctly #28

@sw9

Description

@sw9

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)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions