Skip to content

Commit

Permalink
fix: vioppend mode does not exit correctly (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreytse committed Apr 18, 2023
1 parent 46a1985 commit 61b174d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zsh-vi-mode.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -1515,6 +1515,9 @@ function zvm_range_handler() {
keys="${keys}${key}"
fi

# Exit operator pending mode
zvm_exit_oppend_mode

# Enter visual mode or visual line mode
if [[ $ZVM_MODE != $ZVM_MODE_VISUAL &&
$ZVM_MODE != $ZVM_MODE_VISUAL_LINE ]]; then
Expand Down Expand Up @@ -1655,7 +1658,7 @@ function zvm_range_handler() {
# Handle navigation
case $navkey in
'') exit_code=1;;
*[ia][wW])
*[ia]?)
local widget=
local mark=

Expand Down

0 comments on commit 61b174d

Please sign in to comment.