Skip to content

Commit

Permalink
Fix bug in recent dir sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonrichert committed Apr 2, 2024
1 parent f3fdcfa commit 8aae270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Functions/Init/.autocomplete__recent-dirs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ${0}:precmd() {
# Don't complete current dir, its children, or nonexistent ones.
typeset -ga reply=( ${^dirstack[@]:#$PWD(|/[^/]#)}(N) )

local -i exact=$reply[(i)*/$PREFIX$SUFFIX]
local -i exact=$reply[(I)*/$PREFIX$SUFFIX]
(( exact )) &&
reply=( $reply[exact] $reply[1,exact-1] $reply[exact+1,-1] )

Expand Down

0 comments on commit 8aae270

Please sign in to comment.