Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path autocompletion in cmdline_popup automatically selects matches that end with s #188

Closed
Gordin opened this issue Nov 1, 2022 · 0 comments · Fixed by #639
Closed

Path autocompletion in cmdline_popup automatically selects matches that end with s #188

Gordin opened this issue Nov 1, 2022 · 0 comments · Fixed by #639
Labels
bug Something isn't working

Comments

@Gordin
Copy link

Gordin commented Nov 1, 2022

Edit: Made a PR with a fix for this: #189

Describe the bug
When I open the cmdline popup and try to use the autocompletion for a path, as soon as one of the options ends with s, the autocompletion popup just flickers, closes, and that option is chosen. After that, when you continue to press <TAB> it just seems to continue to just choose the first option immediately. Happens without configuring anything and with popupmenu.backend set to either nui or cmp. With cmp I can still select files inside the folder, with nui I can't, but the automatically selecting the directory happens in both cases. I only tested cmp with my full config, but the problem also appears in the minimal config I posted below.

Which version of Neovim are you using?
NVIM v0.9.0-dev-5e1687e-dirty (latest git master)

To Reproduce
Steps to reproduce the behavior:

  1. init.lua I used:
local execute = vim.api.nvim_command
local fn = vim.fn

local install_path = fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'

if fn.empty(fn.glob(install_path)) > 0 then
  execute('!git clone https://github.com/wbthomason/packer.nvim ' .. install_path)
  execute 'packadd packer.nvim'
end

vim.opt.termguicolors = true

require('packer').init({display = {auto_clean = false}})

require('packer').startup(function(use)
  use { 'wbthomason/packer.nvim' }

  use { 'MunifTanjim/nui.nvim' }
  use { 'rcarriga/nvim-notify'  }
  use { 'folke/noice.nvim' }
end)

require("notify").setup()
require("noice").setup()
  1. hava directory called s or some other directory that ends with s.
  2. do :e ./ or :e / and hold <TAB>

Expected Behavior
<TAB> should select the next option instead of selecting the one with s at the end...

Screenshots
asciicast

Noice Log
I deleted the log and recreated the bug, but :Noice log is still empty after.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant