Skip to content

Commit

Permalink
fix: . command doesn't work as expected behavior (#226)
Browse files Browse the repository at this point in the history
This issue was caused by wrongly escaping non-printable characters,
they were converted to another characters.
  • Loading branch information
jeffreytse committed Jul 6, 2023
1 parent def0f84 commit 2ca0cf6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions zsh-vi-mode.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -1514,11 +1514,10 @@ function zvm_range_handler() {
# Exit operator pending mode
zvm_exit_oppend_mode

# Escape non-printed characters (e.g. ^[)
keys=$(zvm_escape_non_printed_characters "$keys")

# Handle escape in operator pending mode
if [[ "$keys" =~ ${ZVM_VI_OPPEND_ESCAPE_BINDKEY/\^\[/\\^\\[} ]]; then
# escape non-printed characters (e.g. ^[)
if [[ $(zvm_escape_non_printed_characters "$keys") =~
${ZVM_VI_OPPEND_ESCAPE_BINDKEY/\^\[/\\^\\[} ]]; then
return 1
fi
Expand Down

0 comments on commit 2ca0cf6

Please sign in to comment.