Skip to content

Commit

Permalink
Fix a bug in ancestor dirs completion
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonrichert committed Nov 1, 2021
1 parent 06e783e commit 21622da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion functions/completion/_autocomplete.ancestor_dirs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
return 1

[[ $_comp_tags != (|* )(|local-)directories(| *) ]] &&
return
return 1

local displ= expl=
_description -V ancestor-directories expl 'ancestor directory'
Expand Down
2 changes: 1 addition & 1 deletion functions/completion/_autocomplete.recent_paths
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
zmodload -F zsh/parameter p:functions

_autocomplete.recent_paths() {
(( compstate[nmatches] > 1 )) &&
(( compstate[nmatches] )) &&
return 1

local -PaU files=()
Expand Down

0 comments on commit 21622da

Please sign in to comment.