s1n7ax/nvim-window-picker

Bug when same buffer is opened in two different windows

Closed this issue · 2 comments

I encounter an error when I have one buffers opened in two different windows and I try to call the pick_window():

E5108: Error executing lua: /home/xxx/.config/nvim/lua/plugins/nvim-window-picker.lua:31: attempt to concatenate local 'char' (a nil value)
stack traceback:
	/home/xxx/.config/nvim/lua/plugins/nvim-window-picker.lua:31: in function 'selection_display'
	...icker/lua/window-picker/hints/statusline-winbar-hint.lua:79: in function 'draw'
	...indow-picker/lua/window-picker/pickers/window-picker.lua:63: in function 'pick_window'
	/home/xxx/.config/nvim/lua/plugins/telescope.lua:27: in function 'get_selection_window'
	...e/nvim/lazy/telescope.nvim/lua/telescope/actions/set.lua:174: in function 'run_replace_or_original'
	...re/nvim/lazy/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func'
	...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:257: in function <...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:256>
s1n7ax commented

This is thrown from your configuration.

cxwx commented

same issue, how to solve?