diff --git a/kitty/window.py b/kitty/window.py index ee52df377..013a46394 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -980,7 +980,8 @@ class Window: Requires :ref:`shell_integration` to work ''') def show_last_command_output(self) -> None: - text = self.last_cmd_output(as_ansi=True, add_wrap_markers=False) + text = self.last_cmd_output(as_ansi=True, add_wrap_markers=True) + text = text.replace('\r\n', '\n').replace('\r', '\n') get_boss().display_scrollback(self, text, title='Last command output') def paste_bytes(self, text: Union[str, bytes]) -> None: