vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit b8e48c9febafe16b42e0cd4671e1d3068148bce5 parent b50a9dd9fc78df4092229844985a454d97ff1854 Author: Silvan Jegen <s.jegen@gmail.com> Date: Sat, 1 May 2021 21:35:50 +0200 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:
| M | vis-complete | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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