Merge changes from pull request #149

This commit is contained in:
David Vierra 2012-12-09 17:05:13 -10:00
commit 65de6560f2

View File

@ -893,6 +893,9 @@ class TextEditorWrapped(Widget):
if line >= len(textL):
line = len(textL) - 1
if line < 0:
line = 0
def width(i):
return font.size(textL[line][:i])[0]