Skip to content

Commit

Permalink
Fix the clear_terminal scrollback action also clearing screen
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Jan 5, 2025
1 parent cbefc72 commit b0c9262
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ Detailed list of changes

- macOS: Add menu items to the Edit menu to clear the screen and scrollback

- Fix the :ac:`clear_terminal` scrollback action also clearing screen, not just scrollback

0.38.1 [2024-12-26]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion kitty/boss.py
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ def clear_terminal(self, action: str, only_active: bool) -> None:
w.clear_screen(reset=True, scrollback=True)
elif action == 'scrollback':
for w in windows:
w.clear_screen(scrollback=True)
w.screen.clear_scrollback()
elif action == 'clear':
for w in windows:
w.clear_screen()
Expand Down

0 comments on commit b0c9262

Please sign in to comment.