Skip to content

Commit

Permalink
Remove stray space from history search results
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonrichert committed Apr 13, 2021
1 parent fdc21c0 commit a328879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completion/_autocomplete.history_lines
Expand Up @@ -64,7 +64,7 @@ _autocomplete.history_lines() {

matches=( "${(@)events[@]#<->:}" )
[[ $curcontext == *-incremental-* ]] &&
matches=( "${(@)${(@)matches[@]##$lbuffer}%%$rbuffer}" )
matches=( "${(@)${(@)matches[@]##${lbuffer}[[:space:]]#}%%[[:space:]]#${rbuffer}}" )

local _comp_no_ignore=1 expl
_description -2V $tag expl 'history line'
Expand Down

0 comments on commit a328879

Please sign in to comment.