mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 04:30:24 +02:00
31222: Stop {up,down}-line-or-beginning-search from triggering warn_create_global
This is a followup to 30995 taking Peter's suggestions from 30997 into account.
This commit is contained in:
parent
abb32da0e7
commit
e619a7353a
3 changed files with 8 additions and 0 deletions
|
@ -3,6 +3,8 @@
|
|||
|
||||
emulate -L zsh
|
||||
|
||||
typeset -g __searching __savecursor
|
||||
|
||||
if [[ ${+NUMERIC} -eq 0 &&
|
||||
( $LASTWIDGET = $__searching || $RBUFFER != *$'\n'* ) ]]
|
||||
then
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
emulate -L zsh
|
||||
|
||||
typeset -g __searching __savecursor
|
||||
|
||||
if [[ $LBUFFER == *$'\n'* ]]; then
|
||||
zle .up-line-or-history
|
||||
__searching=''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue