1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-12-29 16:25:35 +01:00

users/21068: use emacs keymap in vared by default

This commit is contained in:
Barton E. Schaefer 2015-12-19 16:52:38 -08:00
parent c3ea3ffa73
commit 597ffd85ed
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2015-12-19 Barton E. Schaefer <schaefer@zsh.org>
* users/21068: Functions/Newuser/zsh-newuser-install: use emacs
keymap in vared by default (less surprising than vi modes)
2015-12-19 Mikael Magnusson <mikachu@gmail.com>
* 36650: Doc/Zsh/zle.yo, Src/Zle/zle_main.c: Add

View file

@ -512,7 +512,7 @@ $default_options[$match[2]])
fi
print -r "Edit a value. If it is left blank, nothing will be saved:"
edval=$match[2]
if vared -p "$match[1]> " -h edval; then
if vared -M emacs -p "$match[1]> " -h edval; then
# check this assignment doesn't produce multiple words
# e.g. "HISTFILE=never rm -f ~" does produce multiple words...
# this isn't perfect, e.g. "(this would get split on assignment)",