diff --git a/guake/dialogs.py b/guake/dialogs.py index ae84a2601..9605d9bc1 100644 --- a/guake/dialogs.py +++ b/guake/dialogs.py @@ -149,7 +149,7 @@ def run(self): col = self.terminal.get_column_count() content = self.terminal.get_text_range(0, 0, row, col) - if content: + if content and content[0]: selection = content[0].rstrip().lstrip() else: # Call the original method if get_text_range fails for some reason. (Can it fail?) self.terminal.select_all()