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

@ -14,6 +14,9 @@ Procedure when bumping the version number:
## Unreleased
### Fixed
- Scrolling when exiting message editor
## v0.2.0 - 2022-08-10
### Added

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;
}