Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

left mouse click in diff causes "E5108: Invalid window id" #78

Open
justinmk opened this issue Oct 10, 2024 · 0 comments
Open

left mouse click in diff causes "E5108: Invalid window id" #78

justinmk opened this issue Oct 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@justinmk
Copy link

Describe the bug

E5108: Error executing lua: ...te/pack/paqs/start/satellite.nvim/lua/satellite/view.lua:202: scoped variable: Invalid window id: 1043                                                                                
stack traceback:                                                                                                                                                                                                     
        [C]: in function '__index'                                                                                                                                                                                   
        ...te/pack/paqs/start/satellite.nvim/lua/satellite/view.lua:202: in function 'get_props'                                                                                                                     
        ...e/pack/paqs/start/satellite.nvim/lua/satellite/mouse.lua:237: in function 'handle_initial_leftmouse_event'                                                                                                
        ...e/pack/paqs/start/satellite.nvim/lua/satellite/mouse.lua:344: in function 'handle_leftmouse'                                                                                                              
        ...im/site/pack/paqs/start/satellite.nvim/lua/satellite.lua:144: in function <...im/site/pack/paqs/start/satellite.nvim/lua/satellite.lua:143>

To Reproduce
Steps to reproduce the behavior:

  1. with vim-fugitive, in a repo with unstaged files, run :G to see the git status
  2. hit dd on Unstaged. fugitive opens a ft=diff buffer
  3. use :only or ctrl-w o to make it the only window in the tabpage.
  4. click on any line, causes above error.
    • note: error only occurs if there is no satellite scrollbar, i.e. the buffer is small enough to fit in the viewport.
      • this is likely why the :only step is required.
    • note: clicking again does not cause an error.

Expected behavior

no error, place cursor with mouse left click.

Screenshots

image

@justinmk justinmk added the bug Something isn't working label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant