Skip to content

Commit

Permalink
vis-complete: Strip the common part
Browse files Browse the repository at this point in the history
The previous commit would generate duplicate entries when files with the
same name exist in more than one directory.
  • Loading branch information
TWO-FINGER committed Jan 27, 2018
1 parent 4709c82 commit 83ac70b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vis-complete
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ else
\) 2>/dev/null |
head -n $FIND_FILE_LIMIT |
sort |
xargs -n1 basename
sed "s|^$(dirname $XPATTERN)/||"
fi |
vis-menu -b |
sed "s/^$(basename $PATTERN)//" |
sed "s|^$(basename $PATTERN)$(echo $PATTERN | tail -c 2 | fgrep /)||" |
tr -d '\n'

0 comments on commit 83ac70b

Please sign in to comment.