commit - b1bb43919e8bed91acc21b4bb94d0ad9d34e3105
commit + 418394b83f2ec0036a9953fffbf57be5c0ec36e4
blob - 449b1de96f14e7e358f0990b628145392eff0e71
blob + 3a070672b12de3c2289a788ce84b8c814bd3791c
--- nezzontli_ctl/screens/editor.py
+++ nezzontli_ctl/screens/editor.py
def on_mount(self) -> None:
text_area = self.query_one("#editor-textarea", TextArea)
text_area.focus()
- text_area.cursor_location = text_area.document.end
+ text_area.cursor_location = (0, 0)
self.watch(text_area, "scroll_y", self._sync_preview_scroll)
self.run_worker(
self._rebuild_preview(self._initial_text), exclusive=True, group="preview"