toppair / reach.nvim

Buffer, mark, tabpage, colorscheme switcher for Neovim
MIT License
235 stars 7 forks source link

ReachOpen crashes when the number of buffers is huge #3

Closed nicoe closed 2 years ago

nicoe commented 2 years ago

Hello,

I tried to open the buffer windows with the default configuration and a huge number of buffers (999), it resulted in the following crash:

E5108: Error executing lua ...vim/site/pack/packer/start/reach.nvim/lua/reach/init.lua:49: attempt to get length of field 'handle' (a nil value)
stack traceback:
        ...vim/site/pack/packer/start/reach.nvim/lua/reach/init.lua:49: in function 'buffers'
        [string ":lua"]:1: in main chunk
Press ENTER or type command to continue

After some search I noticed that it fails when you have 94 or more buffers.