mirror of
https://github.com/helix-editor/helix.git
synced 2025-03-31 09:27:45 +03:00
When closing a document we must wait until all views have been updated first - either replacing their current document or closing the view - before we remove the document from the `documents` map. The `Editor::_refresh` helper is called by `Editor::close`. It accesses each View's Document to sync changes and ensure that the cursor is in view. When closing multiple Views at once, `Editor::_refresh` will attempt to access the closing Document while refreshing a to-be-closed View. |
||
---|---|---|
.. | ||
src | ||
tests/encoding | ||
Cargo.toml |