kassio/neoterm

Unexpected warning when closing buffer

NicholasLangevin opened this issue · 0 comments

First, thanks for this awesome plugin!

Describe the bug
When closing the neoterm buffer with Tclose!, a warning is generated. (vim only)

To Reproduce
Steps to reproduce the behavior:

  1. Open a neoterm with :Tnew
  2. Close a neoterm with :Tclose!

Expected behavior
No warning

Screenshots/gifs
ezgif com-video-to-gif

Versions (Issues without this information will take longer to be answered/solved):

  • OS: MacOS Catalina 10.15.5
  • neoterm commit master/d6667d8
let g:neoterm_repl_r = 'R --quiet'
let g:neoterm_default_mod = 'botright'
let g:neoterm_auto_repl_cmd = 1
  • Vim or Neovim
    • vim 8.2
    • neovim

Additional context
This append only in vim, I tested in neovim and it worked well.

Diving a little bit in the code base, I see that Tclose! in tern call neoterm#close which delete
the buffer, but neoterm#destroy seem to be called after it, trying to delete a second time the
buffer.