Skip to content

fix: clear markers when Clear() is called - #43

Open
ona-automations wants to merge 1 commit into
mainfrom
fix/clear-disposes-markers
Open

fix: clear markers when Clear() is called#43
ona-automations wants to merge 1 commit into
mainfrom
fix/clear-disposes-markers

Conversation

@ona-automations

Copy link
Copy Markdown
Collaborator

Terminal.Clear() resets the buffer but does not dispose markers, leaving stale markers with invalid line references.

This adds buf.ClearAllMarkers() to Terminal.Clear() before resetting the buffer lines, matching upstream xterm.js commit 8f2bb32c.

Includes a test that verifies markers are disposed and removed after Clear().

Fixes #42

Terminal.Clear() now calls buf.ClearAllMarkers() before resetting the
buffer, matching upstream xterm.js commit 8f2bb32c. Previously, markers
survived Clear() with invalid line references.

Fixes #42

Co-authored-by: Ona <no-reply@ona.com>
@ona-automations ona-automations added the bug Something isn't working label May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clear() does not dispose markers

1 participant