Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions zsh-history-substring-search.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,11 @@ _history-substring-search-up-history() {
BUFFER=

# going up from somewhere below the top of history
# the cursor is at the end of a multiline prompt, go up in history.
elif [[ $CURSOR -eq $#BUFFER ]] then
zle up-history

# Otherwise, keep the default behavior of up arrow.
else
zle up-line-or-history
fi
Expand Down