Skip to content

Commit b5a1c2a

Browse files
author
Bruno Sutic
committed
Fix regex in key_binding_not_set
Fixes #15
1 parent 22d1305 commit b5a1c2a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changelog
22

33
### master
4+
- bugfix in `key_binding_not_set`: the regex is now properly detecting key
5+
bindings with `-r` flag.
46

57
### v2.1.0, 2014-12-12
68
- check before binding `prefix + prefix` (@m1foley)

sensible.tmux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ server_option_value_not_changed() {
4141

4242
key_binding_not_set() {
4343
local key="$1"
44-
if $(tmux list-keys | grep -q "bind-key[[:space:]]\+${key}"); then
44+
if $(tmux list-keys | grep -q "bind-key[[:space:]]\+\(-r[[:space:]]\+\)\?${key}"); then
4545
return 1
4646
else
4747
return 0

0 commit comments

Comments
 (0)