Skip to content

Commit

Permalink
vis-complete: handle non-ascii text
Browse files Browse the repository at this point in the history
The '[:alnum:]' set does not include non-ascii text which results in
the non-ascii text being replaced with newlines. Using the '[:blank:]'
set with no complement flag fixes this issue.
  • Loading branch information
Shugyousha authored and rnpnr committed Aug 14, 2023
1 parent 8ae019f commit 711447a
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 -cs '[:alnum:]_' '\n' |
tr -s '[:blank:]_' '\n' |
grep "^$(basic_regex_quote "$PATTERN")." |
sort -u
else
Expand Down

0 comments on commit 711447a

Please sign in to comment.