mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-28 01:54:42 +00:00
This fixes zyedidia/micro#329
Now all multi-byte characters are considered a wordchar
This commit is contained in:
parent
cc6189b7ce
commit
cd52aaba13
1 changed files with 1 additions and 1 deletions
|
|
@ -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 == '_')
|
||||
|
|
|
|||
Loading…
Reference in a new issue