Treesitter on empty window
Davincible opened this issue · comments
David Brouwer commented
Small error, when calling the treesitter searcher on an empty buffer I get this;
E5108: Error executing lua: .../packer/start/navigator.lua/lua/navigator/treesitter.lua:770: attempt to perform arithmetic on local 'width' (a nil value)
stack traceback:
.../packer/start/navigator.lua/lua/navigator/treesitter.lua:770: in function <.../packer/start/navigator.lua/lua/navigator/treesitter.lua:759>
I guess it should just fail silently or print a msg that there's nothing to run
rayx commented
should be fixed.
David Brouwer commented
Sweet