Skip to content

Commit

Permalink
really fix the README hover crash..
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed Aug 23, 2018
1 parent 0f6c8e6 commit f8f1f5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text.go
Expand Up @@ -389,7 +389,7 @@ func (sr *SpanRender) FindWrapPosLR(trgSize, curSize float32) int {
if idx >= sz {
idx = sz - 1
}
for idx >= 0 && !unicode.IsSpace(sr.Text[idx]) {
for idx > 0 && !unicode.IsSpace(sr.Text[idx]) {
idx--
}
csz := sr.RelPos.X + sr.Render[idx].RelPos.X
Expand Down

0 comments on commit f8f1f5d

Please sign in to comment.