File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -45,17 +45,19 @@ set_start_bindings() {
45
45
}
46
46
47
47
set_copycat_search_binding () {
48
- local key_bindings=$( get_tmux_option " $copycat_search_option " " $default_copycat_search_key " )
48
+ local key_bindings
49
+ read -r -d ' ' -a key_bindings <<< " $(get_tmux_option " $copycat_search_option " " $default_copycat_search_key " )"
49
50
local key
50
- for key in $ key_bindings; do
51
+ for key in " ${ key_bindings[@]} " ; do
51
52
tmux bind-key " $key " run-shell " $CURRENT_DIR /scripts/copycat_search.sh"
52
53
done
53
54
}
54
55
55
56
set_copycat_git_special_binding () {
56
- local key_bindings=$( get_tmux_option " $copycat_git_search_option " " $default_git_search_key " )
57
+ local key_bindings
58
+ read -r -d ' ' -a key_bindings <<< " $(get_tmux_option " $copycat_git_search_option " " $default_git_search_key " )"
57
59
local key
58
- for key in $ key_bindings; do
60
+ for key in " ${ key_bindings[@]} " ; do
59
61
tmux bind-key " $key " run-shell " $CURRENT_DIR /scripts/copycat_git_special.sh #{pane_current_path}"
60
62
done
61
63
}
You can’t perform that action at this time.
0 commit comments