diff options
author | Freya Murphy <freya@freyacat.org> | 2024-02-27 20:42:10 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-02-27 20:42:10 -0500 |
commit | 508c4fa1b89ee31ca8b005bf146301c14afa7779 (patch) | |
tree | 7685f1b624cd2159ce415a0e8d4d262c81799dac /matrix-bin | |
parent | sort n rand (diff) | |
download | matrix-508c4fa1b89ee31ca8b005bf146301c14afa7779.tar.gz matrix-508c4fa1b89ee31ca8b005bf146301c14afa7779.tar.bz2 matrix-508c4fa1b89ee31ca8b005bf146301c14afa7779.zip |
more mat, sys, and os stdlib functions, better matrix printing, other fixes
Diffstat (limited to 'matrix-bin')
-rw-r--r-- | matrix-bin/src/helper.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/matrix-bin/src/helper.rs b/matrix-bin/src/helper.rs index c0ac5ec..95e0848 100644 --- a/matrix-bin/src/helper.rs +++ b/matrix-bin/src/helper.rs @@ -274,10 +274,10 @@ impl Completer for MatrixHelper { let mut start = 0; for char in line.chars() { - if buf.is_empty() && char.is_alphabetic() { + if buf.is_empty() && (char.is_alphabetic() || char == '_') { start = idx; buf.push(char); - } else if !buf.is_empty() && char.is_alphanumeric() { + } else if !buf.is_empty() && (char.is_alphanumeric() || char == '_') { buf.push(char); } else { if idx >= pos { |