terminal: move semantic prompt state into its own field in screen

This commit is contained in:
Mitchell Hashimoto
2026-02-02 09:17:31 -08:00
parent 9ff9298707
commit e9b6fea11c
3 changed files with 25 additions and 10 deletions

View File

@@ -4295,7 +4295,7 @@ fn clickMoveCursor(self: *Surface, to: terminal.Pin) !void {
// This flag is only set if we've seen at least one semantic prompt
// OSC sequence. If we've never seen that sequence, we can't possibly
// move the cursor so we can fast path out of here.
if (!t.screens.active.flags.semantic_content) return;
if (!t.screens.active.semantic_prompt.seen) return;
// Get our path
const from = t.screens.active.cursor.page_pin.*;