diff options
| author | Silvan Jegen <s.jegen@gmail.com> | 2021-05-01 21:35:50 +0200 |
|---|---|---|
| committer | Randy Palamar <palamar@ualberta.ca> | 2023-08-14 08:39:56 -0600 |
| commit | 711447afd4a7857d1ecb173893009924b07d4993 (patch) | |
| tree | 41671a86bb79a0c0ab98a7dfc15af61fb158004f /vis-complete | |
| parent | 8ae019ffc34b98bcd8546598de6037addaa29a4f (diff) | |
| download | vis-711447afd4a7857d1ecb173893009924b07d4993.tar.gz vis-711447afd4a7857d1ecb173893009924b07d4993.tar.xz | |
vis-complete: handle non-ascii text
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.
Diffstat (limited to 'vis-complete')
| -rwxr-xr-x | vis-complete | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vis-complete b/vis-complete index f30359b..5468073 100755 --- a/vis-complete +++ b/vis-complete @@ -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 |
