bug: executing 'CurlClose' causes error
Closed this issue · 4 comments
idelice commented
Error 12:26:44 msg_show.lua_error CurlClose Error executing Lua callback: vim/_editor.lua:0: nvim_exec2(): Vim(tabclose):E445: Other window contains changes
stack traceback:
[C]: in function 'nvim_exec2'
vim/_editor.lua: in function 'cmd'
...ce/.local/share/nvim/lazy/curl.nvim/lua/curl/buffers.lua:70: in function 'close_curl_tab'
...delice/.local/share/nvim/lazy/curl.nvim/lua/curl/api.lua:24: in function 'close_curl_tab'
...elice/.local/share/nvim/lazy/curl.nvim/lua/curl/init.lua:9: in function <...elice/.local/share/nvim/lazy/curl.nvim/lua/curl/init.lua:8>
Steps-to-produce
- open nvim instance somewhere
- do
:CurlOpen
- do
:CurlClose
oysandvik94 commented
Strange, the curl buffers should be scratches. Which version of neovim are you on? And how do you open neovim? I shoul probably close the buffers instead of the tab anyway, which might avoid this.
oysandvik94 commented
I pushed an update, could you see if you still get the error?
idelice commented
It's fixed. thank you
oysandvik94 commented
No problem, thank you for the bugreport!