romgrk / barbar.nvim

The neovim tabline plugin.
2.2k stars 81 forks source link

fix: error invalid buf #429

Closed romgrk closed 1 year ago

romgrk commented 1 year ago

I'm getting this error when I open sessions, occasionally:

Error executing vim.schedule lua callback: /home/romgrk/src/barbar.nvim/lua/barbar/state.lua:333: Invalid  buffer id: 14f
romgrk commented 1 year ago

lol wait i'm unable to read line numbers apparently. ill update shortly.

romgrk commented 1 year ago

Done.

Btw @Iron-E I see that we're making a deepcopy of something here, on every call to state.icons(). This should be precomputed, so we get a big static options object that we don't need to compute again and again. edit: nvm, just read #408, you're already doing it there