about summary refs log tree commit diff
path: root/Functions/Zle/down-line-or-beginning-search
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Zle/down-line-or-beginning-search')
-rw-r--r--Functions/Zle/down-line-or-beginning-search2
1 files changed, 2 insertions, 0 deletions
diff --git a/Functions/Zle/down-line-or-beginning-search b/Functions/Zle/down-line-or-beginning-search
index fbd2c3341..4c713f197 100644
--- a/Functions/Zle/down-line-or-beginning-search
+++ b/Functions/Zle/down-line-or-beginning-search
@@ -3,6 +3,8 @@
 
 emulate -L zsh
 
+typeset -g __searching __savecursor
+
 if [[ ${+NUMERIC} -eq 0 &&
     ( $LASTWIDGET = $__searching || $RBUFFER != *$'\n'* ) ]]
 then