Merge "Fix crash on python3"

This commit is contained in:
Zuul 2019-01-29 21:17:38 +00:00 committed by Gerrit Code Review
commit d92570abd4
1 changed files with 1 additions and 1 deletions

View File

@ -438,7 +438,7 @@ class HyperText(urwid.Text):
pos = self.getPosAtCoords(maxcol, col, row) pos = self.getPosAtCoords(maxcol, col, row)
index = 0 index = 0
for item, start, end in self.selectable_items: for item, start, end in self.selectable_items:
if start <= pos <= end: if pos is not None and start <= pos <= end:
return index return index
index += 1 index += 1
return None return None