Merge fixes for pull request #149
This commit is contained in:
commit
ab541ed9ed
@ -676,8 +676,10 @@ class TextEditorWrapped(Widget):
|
|||||||
text = self.get_text()
|
text = self.get_text()
|
||||||
i = self.insertion_step
|
i = self.insertion_step
|
||||||
il = self.insertion_line
|
il = self.insertion_line
|
||||||
if i is not None:
|
if il is not None:
|
||||||
i = max(0, min(i, len(self.textL[il])))
|
il = max(0, min(il, (len(self.textL)-1)))
|
||||||
|
if i is not None and il is not None:
|
||||||
|
i = max(0, min(i, len(self.textL[il])-1))
|
||||||
return text, i, il
|
return text, i, il
|
||||||
|
|
||||||
def move_insertion_point(self, d):
|
def move_insertion_point(self, d):
|
||||||
|
Reference in New Issue
Block a user