Skip to content

Commit 9d61936

Browse files
author
Bruno Sutic
committed
Bugfix for 'prefix + R' key binding
1 parent e725d88 commit 9d61936

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

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

33
### master
4+
- bugfix for `prefix + R` key binding
45

56
### v2.2.0, 2015-02-10
67
- bugfix in `key_binding_not_set`: the regex is now properly detecting key

sensible.tmux

Lines changed: 2 additions & 2 deletions
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:]]\+\(-r[[:space:]]\+\)\?${key}"); then
44+
if $(tmux list-keys | grep -q "bind-key[[:space:]]\+\(-r[[:space:]]\+\)\?${key}[[:space:]]"); then
4545
return 1
4646
else
4747
return 0
@@ -160,7 +160,7 @@ main() {
160160

161161
# source `.tmux.conf` file - as suggested in `man tmux`
162162
if key_binding_not_set "R"; then
163-
tmux bind-key R run-shell -b ' \
163+
tmux bind-key R run-shell ' \
164164
tmux source-file ~/.tmux.conf > /dev/null; \
165165
tmux display-message "Sourced .tmux.conf!"'
166166
fi

0 commit comments

Comments
 (0)