summaryrefslogtreecommitdiff
path: root/matrix-bin/src
diff options
context:
space:
mode:
Diffstat (limited to 'matrix-bin/src')
-rw-r--r--matrix-bin/src/helper.rs4
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 {