diff options
-rw-r--r-- | terminal.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/terminal.py b/terminal.py index e3a0a91..de44e22 100644 --- a/terminal.py +++ b/terminal.py @@ -421,7 +421,12 @@ class TerminalActivity(activity.Activity): return True page = self._notebook.get_nth_page(i) - text, attr = page.vt.get_text(is_selected, None) + try: + # get_text is only available in latest vte #676999 + # and pygobject/gobject-introspection #690041 + text, attr_ = page.vt.get_text(is_selected, None) + except AttributeError: + text = '' scrollback_lines = text.split('\n') |