mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-01 22:37:10 -06:00
Each window on a document keeps its own view (selection, zoom, view mode, panes) as an engine WindowView, moved in and out of the session as the windows draw and clamped to edits made through another window. The document, undo history and save state are shared. Two windows on one document are titled Name:1 and Name:2; closing one of them asks nothing, the last asks, and quitting asks once per document. Switch Windows lists windows. The layout memo keeps two layouts and keys on every view option, so windows with different views don't lay out again each frame.