From 508c4fa1b89ee31ca8b005bf146301c14afa7779 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 27 Feb 2024 20:42:10 -0500 Subject: more mat, sys, and os stdlib functions, better matrix printing, other fixes --- matrix-bin/src/helper.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'matrix-bin') 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 { -- cgit v1.2.3-freya