From 0ea14be0ca16adcd6e0d2bf9c6b5bd25425dffdf Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 5 Oct 2023 14:40:55 +0200 Subject: [PATCH] vis-complete: split word using GNU sed's multi-byte capable regex engine --- vis-complete | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vis-complete b/vis-complete index db925f695..a6829edc0 100755 --- a/vis-complete +++ b/vis-complete @@ -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