Refactor scrolling logic for GUIRenderer and terminal to improve synchronization and cursor visibility.

This commit is contained in:
2025-12-02 02:43:05 -08:00
parent 0bfe75fbf0
commit cd33e8feb1
5 changed files with 119 additions and 124 deletions

View File

@@ -34,6 +34,8 @@ TerminalRenderer::Draw(Editor &ed)
const Buffer *buf = ed.CurrentBuffer();
int content_rows = rows - 1; // last line is status
if (content_rows < 1)
content_rows = 1;
int saved_cur_y = -1, saved_cur_x = -1; // logical cursor position within content area
if (buf) {