From bbac1c3d5a5bc39747c034adbb4b3f00b6d1631f Mon Sep 17 00:00:00 2001 From: Michael Sippel Date: Wed, 23 Aug 2023 21:56:12 +0200 Subject: [PATCH] typeterm editor: fix get_addr_view & get_mode_view --- nested/src/editors/typeterm/mod.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/nested/src/editors/typeterm/mod.rs b/nested/src/editors/typeterm/mod.rs index ad5b6dc..9fb84fc 100644 --- a/nested/src/editors/typeterm/mod.rs +++ b/nested/src/editors/typeterm/mod.rs @@ -274,13 +274,11 @@ impl TreeNav for TypeTermEditor { } fn get_addr_view(&self) -> OuterViewPort> { - // fixme this is wrong - self.cur_node.get().get_addr_view() + self.cur_node.get_port().map(|x| x.get_addr_view()).to_sequence().flatten() } fn get_mode_view(&self) -> OuterViewPort> { - // this is wrong - self.cur_node.get().get_mode_view() + self.cur_node.get_port().map(|x| x.get_mode_view()).flatten() } fn get_cursor_warp(&self) -> TreeCursor {