mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-20 07:47:15 +09:00
This fixes zyedidia/micro#329
Now all multi-byte characters are considered a wordchar
This commit is contained in:
@@ -65,7 +65,7 @@ func Max(a, b int) int {
|
||||
func IsWordChar(str string) bool {
|
||||
if len(str) > 1 {
|
||||
// Unicode
|
||||
return false
|
||||
return true
|
||||
}
|
||||
c := str[0]
|
||||
return (c >= '0' && c <= '9') || (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c == '_')
|
||||
|
||||
Reference in New Issue
Block a user