Update fasd.plugin.zsh (#6822)
If `EDITOR` variable contains arguments to an editor such as mine:
`export EDITOR=emacsclient -t -c --alternate-editor=''`
Then, the editor's arguments are passed on to `fasd`. To fix this, pass the EDITOR program in quotes.
Diff
1diff --git a/plugins/fasd/fasd.plugin.zsh b/plugins/fasd/fasd.plugin.zsh
2index 2c302f74d219b25f2d81152c2ff28d958e7e60d9..45d10858f5995cbbca2f62efd6d1b8f9eb83567d 100644
3--- a/plugins/fasd/fasd.plugin.zsh
4+++ b/plugins/fasd/fasd.plugin.zsh
5@@ -6,6 +6,6 @@ if [ $commands[fasd] ]; then # check if fasd is installed
6 source "$fasd_cache"
7 unset fasd_cache
8 9- alias v="f -e $EDITOR"
10+ alias v="f -e \"$EDITOR\""
11 alias o='a -e open_command'
12 fi