Make cursor visible after exiting editor
This commit is contained in:
parent
e6a6497b30
commit
19a477e423
2 changed files with 4 additions and 0 deletions
|
|
@ -14,6 +14,9 @@ Procedure when bumping the version number:
|
||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Scrolling when exiting message editor
|
||||||
|
|
||||||
## v0.2.0 - 2022-08-10
|
## v0.2.0 - 2022-08-10
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
||||||
|
|
@ -235,6 +235,7 @@ impl<M: Msg, S: MsgStore<M>> InnerTreeViewState<M, S> {
|
||||||
match event {
|
match event {
|
||||||
key!(Esc) => {
|
key!(Esc) => {
|
||||||
self.cursor = coming_from.map(Cursor::Msg).unwrap_or(Cursor::Bottom);
|
self.cursor = coming_from.map(Cursor::Msg).unwrap_or(Cursor::Bottom);
|
||||||
|
self.correction = Some(Correction::MakeCursorVisible);
|
||||||
return Reaction::Handled;
|
return Reaction::Handled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue