Skip to content

Commit 2c88f0b

Browse files
committed
Disable updates after VimLeavePre
Otherwise we may accidentally trigger a chansend() when the corresponding job is already dead, which will print an error message like: Error detected while processing function <lambda>2[1]..tpipeline#lualine#fix_stl[9]..tpipeline#update: line 34: Can't send data to closed stream This issue only happened in the lualine codepath (since this is the only part where we are using timers). It was already fixed upstream with neovim switching the TUI to a separate process [0]. However, let's fix this on this plugin site for neovim 0.8 users. Also in neovim 0.8 debug builds there is an issue with neovim taking 2 seconds to exit with lualine. This is not related to this plugin, but lualine's fault for not closing all libuv handles [1]. Get your shit together, lualine! Fixes #56 [0] neovim/neovim#18375 [1] neovim/neovim#18670
1 parent 485c9c8 commit 2c88f0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

autoload/tpipeline.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ func tpipeline#cleanup()
260260
else
261261
call job_stop(s:job)
262262
endif
263+
call tpipeline#state#freeze()
263264
call writefile([''], s:tpipeline_filepath, '')
264265
if g:tpipeline_split
265266
call writefile([''], s:tpipeline_right_filepath, '')

0 commit comments

Comments
 (0)