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

bug: dashboard cursor issue #767

Closed
4 tasks done
jagerem opened this issue Jan 28, 2025 · 0 comments · Fixed by #728
Closed
4 tasks done

bug: dashboard cursor issue #767

jagerem opened this issue Jan 28, 2025 · 0 comments · Fixed by #728
Labels
bug Something isn't working

Comments

@jagerem
Copy link

jagerem commented Jan 28, 2025

Did you check docs and existing issues?

  • I have read all the snacks.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of snacks.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.10.3 Build type: RelWithDebInfo LuaJIT 2.1.1713484068

Operating system/version

Debian 12

Describe the bug

Error executing lua callback: ...cal/share/nvim/lazy/snacks.nvim/lua/snacks/dashboard.lua:712: Invalid window id: 1000
stack traceback:
[C]: in function 'nvim_win_get_cursor'
...cal/share/nvim/lazy/snacks.nvim/lua/snacks/dashboard.lua:712: in function <...cal/share/nvim/lazy/snacks.nvim/lua/snacks/dashboard.lua:711>

Steps To Reproduce

When split the window and go back to the window opened first and close it you get an error where ever place the cursor on existing/left window.
This not appears when you split window and close last one opened - then everything is ok.

Expected Behavior

after closing split window - no matter in which order was opened stop showing the error message and place the active window at the central position - if there is only one active.

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "folke/snacks.nvim", opts = {} },
    -- add any other plugins here
  },
})
@jagerem jagerem added the bug Something isn't working label Jan 28, 2025
@folke folke closed this as completed in d44b978 Jan 28, 2025
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

Successfully merging a pull request may close this issue.

1 participant