Avoid GtkWarning when filtering down to no visible line at all
This commit is contained in:
parent
5f35233eb7
commit
8dbfc09163
@ -498,6 +498,9 @@ class RangeFilteredLogModel (FilteredLogModelBase):
|
|||||||
|
|
||||||
start, end = self.line_index_range
|
start, end = self.line_index_range
|
||||||
|
|
||||||
|
if start == end:
|
||||||
|
raise IndexError ("not in range (empty)")
|
||||||
|
|
||||||
if li < start or li > end:
|
if li < start or li > end:
|
||||||
raise IndexError ("not in range")
|
raise IndexError ("not in range")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user