Skip to content

Commit

Permalink
fix(events): :term stays open after job finishes on 0.10-nightly (#524
Browse files Browse the repository at this point in the history
)

From `:h news`:

> Terminal buffers started with no arguments (and use 'shell') close
> automatically if the job exited without error, eliminating the (often
> unwanted) "[Process exited 0]" message.

Closes #522
  • Loading branch information
Iron-E authored Aug 26, 2023
1 parent 352c09f commit dd85240
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/barbar/events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,11 @@ function events.enable()
group = augroup_render,
})

create_autocmd('TermClose', {
callback = function() render.update(true) end,
group = augroup_render,
})

create_autocmd('User', {
callback = function()
local relative = require('barbar.fs').relative
Expand Down

0 comments on commit dd85240

Please sign in to comment.