From 711447afd4a7857d1ecb173893009924b07d4993 Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Sat, 1 May 2021 21:35:50 +0200 Subject: 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. --- vis-complete | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vis-complete') 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 -- cgit v1.2.3