Skip to content

Commit

Permalink
Fix check for history lines in common substring logic
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonrichert committed Apr 8, 2024
1 parent 1968100 commit 0f95e34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Completions/_autocomplete__history_lines
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,11 @@ _autocomplete__history_lines() {
fi
fi

_comp_tags=history-lines
local tag=history-lines
_comp_tags=" $tag"
local _comp_no_ignore=1
local -a expl=()
_description -2V $_comp_tags expl ''
_description -2V $tag expl ''
builtin compadd $suf -QU -ld displays "$expl[@]" -a matches
}

Expand Down
2 changes: 1 addition & 1 deletion Completions/_autocomplete__unambiguous
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#autoload

[[ $_comp_tags == (history-lines|* recent-*) ]] &&
[[ $_comp_tags == *\ (history-lines|recent-)* ]] &&
return 1

# Is not going to be correct.
Expand Down

0 comments on commit 0f95e34

Please sign in to comment.