Fixes searchbar not looking prior to the configured lines when using infinite scrollback (Eric Johnson)
This commit is contained in:
parent
8f7e7ca0c2
commit
713cb3f3d8
@ -212,7 +212,7 @@ class Searchbar(Gtk.HBox):
|
||||
def get_vte_buffer_range(self):
|
||||
"""Get the range of a vte widget"""
|
||||
column, endrow = self.vte.get_cursor_position()
|
||||
if self.config['scrollback_lines'] < 0:
|
||||
if self.config['scrollback_infinite']:
|
||||
startrow = 0
|
||||
else:
|
||||
startrow = max(0, endrow - self.config['scrollback_lines'])
|
||||
|
Loading…
Reference in New Issue
Block a user