Fix scrolling when sending a message
This commit is contained in:
parent
3ab73668ba
commit
76352f9b6b
1 changed files with 1 additions and 0 deletions
|
|
@ -265,6 +265,7 @@ impl<M: Msg, S: MsgStore<M>> InnerTreeViewState<M, S> {
|
||||||
fn sent(&mut self, id: Option<M::Id>) {
|
fn sent(&mut self, id: Option<M::Id>) {
|
||||||
if let Cursor::Pseudo { coming_from, .. } = &self.cursor {
|
if let Cursor::Pseudo { coming_from, .. } = &self.cursor {
|
||||||
if let Some(id) = id {
|
if let Some(id) = id {
|
||||||
|
self.last_cursor = Cursor::Msg(id.clone());
|
||||||
self.cursor = Cursor::Msg(id);
|
self.cursor = Cursor::Msg(id);
|
||||||
self.editor.clear();
|
self.editor.clear();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue