1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-21 00:01:26 +01:00

users/11790: avoid nounset

This commit is contained in:
Peter Stephenson 2007-08-21 17:35:55 +00:00
parent bfa48687c0
commit 8bd881b7b6
3 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2007-08-21 Peter Stephenson <pws@csr.com>
* users/11790: Functions/Zle/{up,down}-line-or-beginning-search:
emulate -L zsh to avoid nounset problem.
2007-08-20 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 23784: Src/utils.c: Use $'\...' quoting for unparseable and

View file

@ -1,6 +1,8 @@
# Like down-line-or-search, but uses the whole line prefix up to the
# cursor position for searching forwards.
emulate -L zsh
if [[ ${+NUMERIC} -eq 0 &&
( $LASTWIDGET = $__searching || $RBUFFER != *$'\n'* ) ]]
then

View file

@ -1,6 +1,8 @@
# Like up-line-or-search, but uses the whole line prefix up to the
# cursor position for searching backwards.
emulate -L zsh
if [[ $LBUFFER == *$'\n'* ]]; then
zle .up-line-or-history
__searching=''