Skip to content

Commit

Permalink
vis-complete: split word using GNU sed's multi-byte capable regex engine
Browse files Browse the repository at this point in the history
  • Loading branch information
fischerling committed Oct 13, 2023
1 parent 5f0564d commit 14640c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vis-complete
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fi
PATTERN="$1"

if [ $COMPLETE_WORD = 1 ]; then
tr -s '\t {}()[],<>%^&.\\' '\n' |
sed -E 's/([^[:alnum:]_])/\n/g' |
grep "^$(basic_regex_quote "$PATTERN")." |
sort -u
else
Expand Down

0 comments on commit 14640c3

Please sign in to comment.