0
0
Fork 0
This commit is contained in:
Steve Yen 2016-10-12 09:39:43 -07:00
parent 62e6f1f648
commit 6a38fa3719
2 changed files with 3 additions and 3 deletions

View File

@ -78,11 +78,11 @@ func toLowerDeferredCopy(s []byte) []byte {
// Handles the Unicode edge-case where the last
// rune in a word on the greek Σ needs to be converted
// differently.
if l == 'σ' && i + 2 == len(s) {
if l == 'σ' && i+2 == len(s) {
l = 'ς'
}
lwid := utf8.RuneLen(l)
lwid := utf8.RuneLen(l)
if lwid > wid {
// utf-8 encoded replacement is wider
// for now, punt and defer

View File

@ -127,7 +127,7 @@ func (s *DisjunctionSearcher) updateMatches() error {
return err
}
last := len(s.searchers)-1
last := len(s.searchers) - 1
s.searchers[i] = s.searchers[last]
s.searchers = s.searchers[0:last]
s.currs[i] = s.currs[last]