Skip to content

[Bug] Stack trace when cutting & pasting an open buffer #632

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

Closed
levouh opened this issue Nov 29, 2022 · 0 comments · Fixed by #644
Closed

[Bug] Stack trace when cutting & pasting an open buffer #632

levouh opened this issue Nov 29, 2022 · 0 comments · Fixed by #644

Comments

@levouh
Copy link
Contributor

levouh commented Nov 29, 2022

Steps to reproduce:

  • Open file tree
  • Open buffer 1 from file tree
  • Open buffer 2 from file tree
  • Cut buffer 2 in file tree
  • Paste buffer 2 in file tree to a different location
  • Observe the following:
Error executing vim.schedule lua callback: ....nvim/lua/neo-tree/sources/filesystem/lib/fs_actions.lua:48: Invalid window id: 1858                                                                                                                                                                                                                                                                                                                                                           
stack traceback:                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
        [C]: in function 'nvim_win_get_buf'                                                                                                                                                                                                                                                                                                                                                                                                                                                  
        ....nvim/lua/neo-tree/sources/filesystem/lib/fs_actions.lua:48: in function 'replace_buffer_in_windows'                                                                                                                                                                                                                                                                                                                                                                              
        ....nvim/lua/neo-tree/sources/filesystem/lib/fs_actions.lua:72: in function 'rename_buffer'                                                                                                                                                                                                                                                                                                                                                                                          
        ....nvim/lua/neo-tree/sources/filesystem/lib/fs_actions.lua:167: in function <....nvim/lua/neo-tree/sources/filesystem/lib/fs_actions.lua:166>

Making an issue to track for now, but I will look at this at some point unless someone else gets there first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant