editor: typewriter centering keys on view and line heights; a placement resets the editor's centering too
CI / platforms (windows-latest) (push) Failing after 8s
CI / site (push) Successful in 22s
CI / crate (push) Failing after 12m26s
CI / platforms (ubuntu-24.04) (push) Canceled after 0s

This commit is contained in:
ZacharyZhang-NY committed 2026-10-12 09:28:47 -04:00
1 parent cf9cc1971c
commit 7ed4ea8323
4 files changed
+70 -6

No files matched your search

+4
View File
@@ -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();
}