nvim-cokeline
nvim-cokeline copied to clipboard
Cannot close terminal tab
I cannot close terminal tab by clicking on "x" icon or by using pick close option. Error is: Error detected while processing function CokelineHandleCloseButtonClick: line 2: E89: term://~:/usr/bin/zsh will be killed (add ! to override)
I can close it by forcing it using :bd!
I took a look at this function: function! CokelineHandleCloseButtonClick(minwid, clicks, button, modifiers) if a:button != 'l' | return | endif execute printf('bdelete %s', a:minwid) endfunction Is there a way to check if the tab is terminal and to use bdelete! for it, while keeping bdelete for other tabs?