diff --git a/src/ui/chat/tree/layout.rs b/src/ui/chat/tree/layout.rs index eee5975..6866142 100644 --- a/src/ui/chat/tree/layout.rs +++ b/src/ui/chat/tree/layout.rs @@ -327,21 +327,8 @@ impl> InnerTreeViewState { } fn scroll_so_cursor_is_visible(&self, frame: &mut Frame, blocks: &mut TreeBlocks) { - if !matches!( - self.cursor, - Cursor::Msg(_) - | Cursor::Editor { - parent: Some(_), - .. - } - | Cursor::Pseudo { - parent: Some(_), - .. - } - ) { - // In all other cases, there is no need to make the cursor visible - // since scrolling behaves differently enough. - return; + if matches!(self.cursor, Cursor::Bottom) { + return; // Cursor is locked to bottom } let block = blocks