axkirillov / hbac.nvim

Heuristic buffer auto-close
MIT License
197 stars 10 forks source link

pressing 'i' in telescope extension #24

Closed jonestristand closed 3 months ago

jonestristand commented 6 months ago

Odd issue, can't quite track it down, but I get the following error if I open the telescope extension a second time and press i anywhere in the buffer name I am searching for... Has anyone seen similar?

E5108: Error executing lua: ...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:269: attempt to call upvalue 'key_func' (a table value)
stack traceback:
        ...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:269: in function <...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:268>
al-ce commented 6 months ago

It's a bug because the n and i mode mappings tables are being copied recursively on subsequent calls. My fault! Would you please try the fix in this PR? #25

jonestristand commented 6 months ago

Yep, that fixes it!