Skip to content

calling :JABSOpen when JABS window is already opened breaks the plugin #46

Description

@64-bitman

neovim version = v0.9.0

Hello,
When I call :JABSOpen when the JABS window is already opened, it breaks the entire plugin (I have to restart nvim for it work again) and gives me this error:

E5108: Error executing lua /home/canada/.local/share/nvim/lazy/JABS.nvim/lua/jabs.lua:557: Invalid buffer id: 2                                                 
stack traceback:                                                                                                                                                
        [C]: in function 'nvim_buf_delete'                                                                                                                      
        /home/canada/.local/share/nvim/lazy/JABS.nvim/lua/jabs.lua:557: in function 'close'                                                                     
        /home/canada/.local/share/nvim/lazy/JABS.nvim/lua/jabs.lua:621: in function 'open'                                                                      
        [string ":lua"]:1: in main chunk       

from this issue #9 :JABSOpen should toggle but that doesn't work for me

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions