Implemented completion for variable names
Fixed 'w' and 'b' motions in vi mode stopping on underscores
This commit is contained in:
@@ -53,7 +53,7 @@ impl From<&str> for CharClass {
|
||||
return CharClass::Alphanum;
|
||||
}
|
||||
|
||||
if value.chars().all(char::is_alphanumeric) {
|
||||
if value.chars().all(|c| c.is_alphanumeric() || c == '_') {
|
||||
CharClass::Alphanum
|
||||
} else if value.chars().all(char::is_whitespace) {
|
||||
CharClass::Whitespace
|
||||
|
||||
Reference in New Issue
Block a user