Fix the clear_terminal scrollback action also clearing screen

This commit is contained in:
Kovid Goyal 2025-01-05 14:06:14 +05:30
parent cbefc72a7e
commit b0c9262652
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 1 deletions

View file

@ -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]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -1264,7 +1264,7 @@ class Boss:
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()