Skip to content

Commit 76421f9

Browse files
authored
Merge pull request #59 from contember/fix/wire-content-pane-registry
fix: wire up content pane registry for PTY dirty notifications
2 parents 8fe09a0 + b72d9af commit 76421f9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,11 @@ fn main() {
631631
})
632632
.detach();
633633

634+
// Wire up content pane registration so PTY events can notify terminal views
635+
okena_views_terminal::set_register_content_pane_fn(Box::new(|terminal_id, weak_content| {
636+
crate::views::root::content_pane_registry().lock().insert(terminal_id, weak_content);
637+
}));
638+
634639
// Create the main app view wrapped in Root (required for gpui_component inputs)
635640
let okena = cx.new(|cx| {
636641
Okena::new(workspace_data, pty_manager.clone(), pty_events, listen_addr, window, cx)

0 commit comments

Comments
 (0)