1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-21 00:01:26 +01:00
zsh/Functions/Zle/down-line-or-beginning-search

14 lines
345 B
Text
Raw Normal View History

# Like down-line-or-search, but uses the whole line prefix up to the
# cursor position for searching forwards.
if [[ $LASTWIDGET != $WIDGET ]]
then
if [[ $LBUFFER == *$'\n'* ]]
then
__last_down_line=down-line-or-history
else
__last_down_line=history-beginning-search-forward
fi
fi
zle .${__last_down_line:-beep}