Skip to content

Don't shellescape parts of search patterns#10

Open
lucianposton wants to merge 1 commit into
yegappan:masterfrom
lucianposton:fix-escape
Open

Don't shellescape parts of search patterns#10
lucianposton wants to merge 1 commit into
yegappan:masterfrom
lucianposton:fix-escape

Conversation

@lucianposton

@lucianposton lucianposton commented Aug 2, 2018

Copy link
Copy Markdown

Fixes #9

The (incomplete) patterns were shellescape()'d. Even if the full pattern were parsed by s:parseArgs(), it isn't necessary since the user is typing in an argument to a command in the shell in the first place.

Note there is a separate issue in the original code in how s:parseArgs() incorrectly assumes that the first non-option argument is the entire search pattern. Vim's <f-args> doesn't handle quotes like shell quoting, unfortunately, making this assumption in s:parseArgs() incorrect. I went ahead and opened #11 to track this separate issue.

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