editor: typewriter centering keys on view and line heights; a placement resets the editor's centering too
This commit is contained in:
4 files changed
+70
-6
No files matched your search
@@ -160,6 +160,10 @@ impl MarkdownDocument {
|
||||
self.top = None;
|
||||
// The view moved: center again.
|
||||
self.centered = None;
|
||||
self.editor.update(cx, |editor, cx| {
|
||||
editor.centered = None;
|
||||
cx.notify();
|
||||
});
|
||||
cx.notify();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user