Merge changes from pull request #149
This commit is contained in:
commit
65de6560f2
@ -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]
|
||||
|
Reference in New Issue
Block a user