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 Feb 15, 2024
1 parent ad301ff commit 0ea14be
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 0ea14be

Please sign in to comment.