oysandvik94/curl.nvim

bug: executing 'CurlClose' causes error

Closed this issue · 4 comments

   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

  1. open nvim instance somewhere
  2. do :CurlOpen
  3. do :CurlClose

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.

I pushed an update, could you see if you still get the error?

It's fixed. thank you

No problem, thank you for the bugreport!