From ddf70953fec3b76f198e36738bd9b26bf944ff62 Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Thu, 14 May 2020 21:34:17 -0400 Subject: [PATCH] Support snake case autocompletion Fixes #1655 --- internal/util/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/util/util.go b/internal/util/util.go index 70f1fd2a..841363ce 100644 --- a/internal/util/util.go +++ b/internal/util/util.go @@ -416,7 +416,7 @@ func Clamp(val, min, max int) int { } func IsNonAlphaNumeric(c rune) bool { - return !unicode.IsLetter(c) && !unicode.IsNumber(c) + return !unicode.IsLetter(c) && !unicode.IsNumber(c) && c != '_' } func ParseSpecial(s string) string {