Fixes searchbar not looking prior to the configured lines when using infinite scrollback (Eric Johnson)

This commit is contained in:
Stephen Boddy 2017-02-01 09:51:37 +01:00
parent 8f7e7ca0c2
commit 713cb3f3d8
1 changed files with 1 additions and 1 deletions

View File

@ -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'])