File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ server_option_value_not_changed() {
4141
4242key_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
You can’t perform that action at this time.
0 commit comments