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() {
4545}
4646
4747set_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 " )"
4950 local key
50- for key in $ key_bindings; do
51+ for key in " ${ key_bindings[@]} " ; do
5152 tmux bind-key " $key " run-shell " $CURRENT_DIR /scripts/copycat_search.sh"
5253 done
5354}
5455
5556set_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 " )"
5759 local key
58- for key in $ key_bindings; do
60+ for key in " ${ key_bindings[@]} " ; do
5961 tmux bind-key " $key " run-shell " $CURRENT_DIR /scripts/copycat_git_special.sh #{pane_current_path}"
6062 done
6163}
You can’t perform that action at this time.
0 commit comments