Skip to content

Commit

Permalink
Merge pull request #887 from mattrose/fix-tb
Browse files Browse the repository at this point in the history
fix traceback in layout_done
  • Loading branch information
mattrose authored Feb 18, 2024
2 parents 5ef1131 + 7f581fd commit 6642786
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion terminatorlib/terminator.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@ def layout_done(self):
# For windows without a notebook ensure Terminal is visible and focused
if window_last_active_term_mapping[window]:
term = self.find_terminal_by_uuid(window_last_active_term_mapping[window].urn)
term.ensure_visible_and_focussed()
if term:
term.ensure_visible_and_focussed()

# Build list of new windows using prelayout list
new_win_list = []
Expand Down

0 comments on commit 6642786

Please sign in to comment.