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

Escape metacharacters when loading file into cmdline #196

Merged
merged 2 commits into from
Oct 14, 2023
Merged

Escape metacharacters when loading file into cmdline #196

merged 2 commits into from
Oct 14, 2023

Conversation

Pokryton
Copy link
Contributor

Small updates for actions open_cmd_line and open_cmdline_dir.

  • Escape special characters in the file path with fnameescape() .
  • Invoke nvim_feedkeys() with escape_ks=false as suggested in :h nvim_feedkeys() (otherwise there may be problems when file path contains non-ANSCII character).

@stevearc
Copy link
Owner

Thanks for the PR!

@stevearc stevearc merged commit a8ac4de into stevearc:master Oct 14, 2023
@Pokryton Pokryton deleted the patch branch October 15, 2023 05:23
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.

2 participants