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 source does not properly escape file names with special characters, e.g. \, $, % etc. in cmdline #751

Closed
2 tasks done
Bekaboo opened this issue Dec 24, 2024 · 0 comments
Labels
bug Something isn't working cmdline Related to the command line

Comments

@Bekaboo
Copy link

Bekaboo commented Dec 24, 2024

Make sure you have done the following

  • I have updated to the latest version of blink.cmp
  • I have read the README

Bug Description

Path source does not properly escape file names with special characters.

Steps to repro:

  1. Create a file file_with_%sign.txt
  2. Use the default config, :e then select the entry corresponding to the test file
  3. Hit <C-y> to confirm the selection
  4. file_with_%sign.txt (without escape) is inserted to the cmdline, this will make nvim expand '%' to current buffer name and open the wrong file. Desired output: file_with_\%sign.txt

Relevant configuration

All default.

neovim version

0.10.3

blink.cmp version: branch, tag, or commit

main

@Bekaboo Bekaboo added the bug Something isn't working label Dec 24, 2024
@Saghen Saghen added the cmdline Related to the command line label Dec 30, 2024
@Saghen Saghen closed this as completed in e53db6a Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cmdline Related to the command line
Projects
None yet
Development

No branches or pull requests

2 participants