JABS.nvim icon indicating copy to clipboard operation
JABS.nvim copied to clipboard

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

Open 64-bitman opened this issue 2 years ago • 0 comments

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

64-bitman avatar May 06 '23 19:05 64-bitman