voldikss / coc-extensions

🌸 Collections of coc.nvim extensions maintained by @voldikss
122 stars 6 forks source link

Translator popup will produce lots of useless "[Scratch]" buffers #90

Closed linjiX closed 4 years ago

linjiX commented 4 years ago

Every time the translator popup window appears, it will create a "[Scratch]" buffer. After the popup window is closed, the "[Scratch]" buffer will not be removed. Also the next time the translator popup window appears, the previous "[Scratch]" buffer will not be reused. Instead it will create a new one. After using coc-translator multiple times, there will be full of useless "[Scratch]" buffers in the buffer list.

chemzqm commented 4 years ago

Fixed on latest release branch of coc.nvim, also coc-translator could just use FloatFactory module and replace it's window module.