Return the actual bufnr as opposed to the index of listed buffers. Now you will get the buffer number as seen when running :ls. Maybe there was a good reason for wanting this index but it seemed to be that users would expect bufnr. You can use bufnr for [N] when using :buffer [N] and alike. I don't know what you can do with that index returned now. If I have misunderstood the provider's use case, then apologies. My intent is to fix, not cause breaking changes on expected behavior. 😄
I hope this adds value for users. It certainly has helped me. Thanks again for forking and maintaining @NTBBloodbath 👍🏼
Return the actual
bufnr
as opposed to the index of listed buffers. Now you will get the buffer number as seen when running:ls
. Maybe there was a good reason for wanting this index but it seemed to be that users would expectbufnr
. You can usebufnr
for[N]
when using:buffer [N]
and alike. I don't know what you can do with that index returned now. If I have misunderstood the provider's use case, then apologies. My intent is to fix, not cause breaking changes on expected behavior. 😄I hope this adds value for users. It certainly has helped me. Thanks again for forking and maintaining @NTBBloodbath 👍🏼
Reference: https://github.com/neovim/neovim/search?q=nvim_win_get_buf