Skip to content

Commit

Permalink
fix: escape cmd line flags of ZVM_VI_EDITOR (#143)
Browse files Browse the repository at this point in the history
It was causing problems when setting the editor with command line flags.
  • Loading branch information
kevintraver authored Nov 23, 2021
1 parent d287665 commit 95e791c
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 @@ -1758,7 +1758,7 @@ function zvm_vi_edit_command_line() {
# the warning about input not from a terminal (e.g.
# vim), we should tell the editor input is from the
# terminal and not from standard input.
$ZVM_VI_EDITOR $tmp_file </dev/tty
"${(@Q)${(z)${ZVM_VI_EDITOR}}}" $tmp_file </dev/tty

# Reload the content to the BUFFER from the temporary
# file after editing, and delete the temporary file.
Expand Down

0 comments on commit 95e791c

Please sign in to comment.