Skip to content

Commit

Permalink
Tweak history search order
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonrichert committed May 31, 2023
1 parent 54a221d commit 36f10ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Completions/_autocomplete__history_lines
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ _autocomplete__history_lines() {
for index in {1..$#displays[@]}; do
num=${(SM)${(M)displays[index]##$~numpat}##<->}
displays[index]=${history[$num]:/(#b)$~lbuffer($~query)$~rbuffer/$((
HISTNO + num - 64 * $#match[3] - 16 * $#match[1] - 4 * mbegin[3]
HISTNO + num - 64 * $#match[3] - 16 * mbegin[3] - 4 * $#match[1]
))}$'\0'$displays[index]
done
displays=( ${${(@nO)displays}[@]##<->$'\0'} )
Expand Down

0 comments on commit 36f10ba

Please sign in to comment.