Skip to content

Commit

Permalink
fix: escape the special control character ^@
Browse files Browse the repository at this point in the history
It fixes a wrong change on escaping the control character `^@`,
and this bug is introduced by the PR #109.
  • Loading branch information
jeffreytse committed May 30, 2021
1 parent ef1fdbe commit 47bdd0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zsh-vi-mode.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ function zvm_escape_non_printed_characters() {
str="${str}^${c}"
elif [[ "$c" == '' ]]; then
str="${str}^?"
elif [[ "$c" == '' ]]; then
elif [[ "$c" == '
str="${str}^@"
else
str="${str}${c}"
Expand Down

0 comments on commit 47bdd0b

Please sign in to comment.