nvim-telescope / telescope-ui-select.nvim

MIT License
774 stars 18 forks source link

Error shown when all items are filtered out and ENTER is pressed #11

Closed steliyan closed 2 years ago

steliyan commented 2 years ago

Steps

  1. Open a list (e.g. code actions)
  2. Enter a non-matching string (e.g. xyz)
  3. Press ENTER (<CR>)

Actual: Error is shown Expected: Nothing happens (or some feedback is given to the user)

Screenshots

image image

Stacktrace

E5108: Error executing lua ...e-ui-select.nvim/lua/telescope/_extensions/ui-select.lua:115: attempt to index a nil value
stack traceback:
        ...e-ui-select.nvim/lua/telescope/_extensions/ui-select.lua:115: in function 'run_replace_or_original'
        ...nvim/plugged/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func'
        ...e/nvim/plugged/telescope.nvim/lua/telescope/mappings.lua:242: in function 'execute_keymap'
        [string ":lua"]:1: in main chunk