Port most of cursor movement logic

This commit is contained in:
Joscha 2022-07-20 14:07:02 +02:00
parent 4cf0d861db
commit 48943f2316
4 changed files with 94 additions and 254 deletions

View file

@ -5,7 +5,8 @@ use toss::frame::{Frame, Size};
use crate::store::{Msg, MsgStore, Path, Tree};
use super::blocks::{Block, BlockBody, Blocks, MsgBlock};
use super::{util, Cursor, InnerTreeViewState};
use super::cursor::Cursor;
use super::{util, InnerTreeViewState};
impl<M: Msg, S: MsgStore<M>> InnerTreeViewState<M, S> {
async fn cursor_path(&self, cursor: &Cursor<M::Id>) -> Path<M::Id> {