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

Fixed key_binding_not_set regex issue #37

Merged
merged 2 commits into from
May 20, 2021
Merged

Conversation

futuro
Copy link
Contributor

@futuro futuro commented Oct 2, 2016

If you run key_binding_not_set against '' that character will be placed
as is in the regex that's run, and will escape something it shouldn't.
So we test for this and escape the character if necessary.

Fixes #36

If you run key_binding_not_set against '\' that character will be placed
as is in the regex that's run, and will escape something it shouldn't.
So we test for this and escape the character if necessary.
To handle the possibility of the escape character being anywhere in the
key passed to `key_binding_not_set`, I've opted to use parameter
replacement to escape every escape character. This is more suscinct, and
will make sure every '\' is handled.
@josephjang
Copy link

josephjang commented May 3, 2021

Confirmed that this fixes the tmux-sensible loading problem when the prefix key is set to C-\.

@bruno- bruno- merged commit 989d092 into tmux-plugins:master May 20, 2021
@bruno-
Copy link
Member

bruno- commented May 20, 2021

Sorry for the long wait.

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.

Setting your prefix key to C-\ breaks key_binding_not_set
3 participants