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

visual star does not escape special characters #2374

Closed
moetayuko opened this issue Feb 3, 2025 · 1 comment
Closed

visual star does not escape special characters #2374

moetayuko opened this issue Feb 3, 2025 · 1 comment

Comments

@moetayuko
Copy link

It appears that visual star does not escape special characters in a G show buffer. For example, I cannot search selected text containing / such as file paths. Commenting PatchSearchExpr keymaps to use neovim's built-in visual search implementation resolves the issue

call s:Map('nxo', '*', '<SID>PatchSearchExpr(0)', '<expr>')
call s:Map('nxo', '#', '<SID>PatchSearchExpr(1)', '<expr>')

@tpope tpope closed this as completed in b068eaf Feb 3, 2025
@tpope
Copy link
Owner

tpope commented Feb 3, 2025

Visual star wasn't a distinct behavior when I created those maps.

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

No branches or pull requests

2 participants