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 backslashes in key when grepping for keybindings #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danmou
Copy link

@danmou danmou commented Sep 18, 2019

No description provided.

@@ -45,7 +50,7 @@ server_option_value_not_changed() {
}

key_binding_not_set() {
local key="$1"
local key=$(escape_for_regex "$1")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need the escape_for_regex method. You can use bash expansions directly

local key="${key//\\/\\\\}"

@tpoliaw
Copy link

tpoliaw commented Apr 21, 2021

Any chance this could be merged? I'm having the same problems.

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