Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(commands): potential nil access (#821)
* Fix potential nil access If one uses this method mapped to keys and accidentally hit a number with a non-existing buffer, `element` can be nil: ``` E5108: Error executing lua: ...re/nvim/lazy/bufferline.nvim/lua/bufferline/commands.lua:122: attempt to index local 'element' (a nil value) stack traceback: ...re/nvim/lazy/bufferline.nvim/lua/bufferline/commands.lua:122: in function 'go_to' ``` * Update lua/bufferline/commands.lua Co-authored-by: Akin <[email protected]> --------- Co-authored-by: Akin <[email protected]>
- Loading branch information