nvim-cokeline icon indicating copy to clipboard operation
nvim-cokeline copied to clipboard

Cannot close terminal tab

Open mrdakj opened this issue 3 years ago • 0 comments

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?

mrdakj avatar May 19 '22 08:05 mrdakj