Make cursor visible after exiting editor

This commit is contained in:
Joscha 2022-08-11 14:36:01 +02:00
parent e6a6497b30
commit 19a477e423
2 changed files with 4 additions and 0 deletions

View file

@ -235,6 +235,7 @@ impl<M: Msg, S: MsgStore<M>> InnerTreeViewState<M, S> {
match event {
key!(Esc) => {
self.cursor = coming_from.map(Cursor::Msg).unwrap_or(Cursor::Bottom);
self.correction = Some(Correction::MakeCursorVisible);
return Reaction::Handled;
}