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:
parent
bfa48687c0
commit
8bd881b7b6
3 changed files with 9 additions and 0 deletions
|
@ -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>
|
2007-08-20 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||||
|
|
||||||
* 23784: Src/utils.c: Use $'\...' quoting for unparseable and
|
* 23784: Src/utils.c: Use $'\...' quoting for unparseable and
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
# Like down-line-or-search, but uses the whole line prefix up to the
|
# Like down-line-or-search, but uses the whole line prefix up to the
|
||||||
# cursor position for searching forwards.
|
# cursor position for searching forwards.
|
||||||
|
|
||||||
|
emulate -L zsh
|
||||||
|
|
||||||
if [[ ${+NUMERIC} -eq 0 &&
|
if [[ ${+NUMERIC} -eq 0 &&
|
||||||
( $LASTWIDGET = $__searching || $RBUFFER != *$'\n'* ) ]]
|
( $LASTWIDGET = $__searching || $RBUFFER != *$'\n'* ) ]]
|
||||||
then
|
then
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
# Like up-line-or-search, but uses the whole line prefix up to the
|
# Like up-line-or-search, but uses the whole line prefix up to the
|
||||||
# cursor position for searching backwards.
|
# cursor position for searching backwards.
|
||||||
|
|
||||||
|
emulate -L zsh
|
||||||
|
|
||||||
if [[ $LBUFFER == *$'\n'* ]]; then
|
if [[ $LBUFFER == *$'\n'* ]]; then
|
||||||
zle .up-line-or-history
|
zle .up-line-or-history
|
||||||
__searching=''
|
__searching=''
|
||||||
|
|
Loading…
Reference in a new issue