Skip to content

fix: escape special chars in filenames#122

Open
Bekaboo wants to merge 1 commit intohrsh7th:mainfrom
Bekaboo:main
Open

fix: escape special chars in filenames#122
Bekaboo wants to merge 1 commit intohrsh7th:mainfrom
Bekaboo:main

Conversation

@Bekaboo
Copy link

@Bekaboo Bekaboo commented Dec 24, 2024

This PR escape special chars in filenames, like the native cmdline completion do.

Consider we have a file with special char % in its filename, the current implementation will not escape it:

image

Pressing <CR> with make neovim expand % to current buffer name.

The native cmdline completion properly escapes it:

image

The PR fixes the issue:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant