Fix for tiny selection handle in some circumstances

This commit is contained in:
Kovid Goyal 2020-08-06 12:29:01 +05:30
parent 0319f8325a
commit 1c5fed9e4c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -86,6 +86,10 @@ def range_extents(start, end, in_flow_mode):
for_boundary(end, ans.end)
ans.start.is_empty = ans.start.height <= 0
ans.end.is_empty = ans.end.height <= 0
if ans.end.height is 2 and ans.start.height > 2:
ans.end.height = ans.start.height
if ans.start.height is 2 and ans.end.height > 2:
ans.start.height = ans.end.height
return ans