Merge "Fix crash on python3"
This commit is contained in:
commit
d92570abd4
@ -438,7 +438,7 @@ class HyperText(urwid.Text):
|
||||
pos = self.getPosAtCoords(maxcol, col, row)
|
||||
index = 0
|
||||
for item, start, end in self.selectable_items:
|
||||
if start <= pos <= end:
|
||||
if pos is not None and start <= pos <= end:
|
||||
return index
|
||||
index += 1
|
||||
return None
|
||||
|
Loading…
x
Reference in New Issue
Block a user