Skip to content

Commit 45a53cf

Browse files
committed
Fix problem with history read from file
1 parent 82988c9 commit 45a53cf

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

zsh-edit.plugin.zsh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
#!/bin/zsh
2+
3+
# Ensure history from file is shell-parsed into words, not split on blanks.
4+
setopt histlexwords
5+
6+
typeset -ga _edit_opts=( extendedglob NO_listbeep NO_shortloops warncreateglobal )
7+
28
() {
3-
typeset -gHa _edit_opts=( extendedglob NO_listbeep NO_shortloops warncreateglobal )
4-
emulate -L zsh; setopt $_edit_opts
9+
emulate -L zsh
10+
setopt $_edit_opts
511

612
local dir=${${(%):-%x}:P:h}
713
local fdir=$dir/functions
14+
815
typeset -gU FPATH fpath=( $dir $fpath )
916
autoload -Uz $fdir/{bind,zsh-edit} $fdir/[._]edit.*~*.zwc(DN)
1017

0 commit comments

Comments
 (0)