vim-bufferline
vim-bufferline copied to clipboard
expand g:bufferline_fixed_position
Current code will raise an error when there is only one buffer and at same time g:bufferline_fixed_index is mistakenly set to 2 (one would likely make it as the other two options given in the doc are 0 and 1).
The pr checks if there are enough buffers and expands g:bufferline_fixed_index to accept all integers.