From 713cb3f3d8eb43c61d913de144697beae45a420a Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Wed, 1 Feb 2017 09:51:37 +0100 Subject: [PATCH] Fixes searchbar not looking prior to the configured lines when using infinite scrollback (Eric Johnson) --- terminatorlib/searchbar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminatorlib/searchbar.py b/terminatorlib/searchbar.py index a142a633..47d65dbf 100755 --- a/terminatorlib/searchbar.py +++ b/terminatorlib/searchbar.py @@ -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'])