Skip to content

Commit f299119

Browse files
committed
fix: escape hints
1 parent 156ac98 commit f299119

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

easymotion.tmux

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ SMARTSIGN=$(get_tmux_option "@easymotion-smartsign" "false")
2626
tmp_file=$(mktemp -t tmux-easymotion_keystroke-XXXXXXX)
2727

2828
# Execute Python script with environment variables
29+
HINTS_ESCAPED="${HINTS/;/\";\"}"
2930
tmux bind $(get_tmux_option "@easymotion-key" "s") run-shell "\
30-
printf '\x03' > $tmp_file && tmux command-prompt -1 -p 'easymotion:' 'run-shell \"printf %s\\\\n \\\"%1\\\" > $tmp_file\"' \; \
31-
neww -d '\
32-
TMUX_EASYMOTION_HINTS=$HINTS \
31+
printf '\x03' > $tmp_file && tmux command-prompt -1 -p 'easymotion:' 'run-shell \"printf %s\\\\n \\\"%1\\\" > $tmp_file\"' \; \
32+
neww -d '\
33+
TMUX_EASYMOTION_HINTS=$HINTS_ESCAPED \
3334
TMUX_EASYMOTION_VERTICAL_BORDER=$VERTICAL_BORDER \
3435
TMUX_EASYMOTION_HORIZONTAL_BORDER=$HORIZONTAL_BORDER \
3536
TMUX_EASYMOTION_USE_CURSES=$USE_CURSES \

0 commit comments

Comments
 (0)