Skip to content

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

@levouh

Description

@levouh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions