Skip to content

lsp-ui-peek-find-definitions and split window #457

Open
@nloyola

Description

@nloyola

When I have the same buffer in side by side windows (C-x 3), the other buffer's start position is changed after calling lsp-ui-peek-find-definitions. For example, if my file is 80 lines long and in buffer A I have the point at line 75, and in buffer B I have the point at line 5 and I invoke lsp-ui-peek-find-definitions in buffer B, buffer A's start position is now line 72.

I traced through the code and found out that in lsp-ui-peek--peek-hide there is a call to set-window-start:

(set-window-start (get-buffer-window) lsp-ui-peek--win-start))

This causes the buffer's start position to be changed.

I would find it better if the position in buffer A was never changed.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions