diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2007-08-21 17:35:55 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-08-21 17:35:55 +0000 |
| commit | 8bd881b7b6575f158e33722813b23891ddb46c34 (patch) | |
| tree | 14eab366bd9e8a9a5c593dbbd3957e391a44d702 /Functions/Zle | |
| parent | 23784: Use $'\...' for quoting unparseable characters (diff) | |
| download | zsh-8bd881b7b6575f158e33722813b23891ddb46c34.tar zsh-8bd881b7b6575f158e33722813b23891ddb46c34.tar.gz zsh-8bd881b7b6575f158e33722813b23891ddb46c34.tar.bz2 zsh-8bd881b7b6575f158e33722813b23891ddb46c34.tar.lz zsh-8bd881b7b6575f158e33722813b23891ddb46c34.tar.xz zsh-8bd881b7b6575f158e33722813b23891ddb46c34.tar.zst zsh-8bd881b7b6575f158e33722813b23891ddb46c34.zip | |
users/11790: avoid nounset
Diffstat (limited to 'Functions/Zle')
| -rw-r--r-- | Functions/Zle/down-line-or-beginning-search | 2 | ||||
| -rw-r--r-- | Functions/Zle/up-line-or-beginning-search | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Functions/Zle/down-line-or-beginning-search b/Functions/Zle/down-line-or-beginning-search index 8a8ed8994..fbd2c3341 100644 --- a/Functions/Zle/down-line-or-beginning-search +++ b/Functions/Zle/down-line-or-beginning-search @@ -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 diff --git a/Functions/Zle/up-line-or-beginning-search b/Functions/Zle/up-line-or-beginning-search index 22d5183be..5348e7ad3 100644 --- a/Functions/Zle/up-line-or-beginning-search +++ b/Functions/Zle/up-line-or-beginning-search @@ -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='' |
