# Objective Fixes #61236 ## Solution This regression was introduced by #56715, which switches the alignment based on whether the last row contains any content. However, this logic can cause issues in the alternate screen. This PR fixes the problem by excluding the alternate screen from the detection logic. ## Testing Open Zed’s integrated terminal and run a program that uses the alternate screen, such as Vim or Helix. ## Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content adheres to Zed's UI standards ([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) and [icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md) guidelines) - [x] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable ## Showcase https://github.com/user-attachments/assets/ffc1ca56-596a-439a-8672-12868f9dc112 --- Release Notes: - Fixed flickering in the integrated terminal when using the alternate screen.
2 files changedLine totals unavailable