mirror of
https://github.com/realAscot/helix.git
synced 2025-09-14 04:03:03 +02:00
This fixes a regression from 6da1a79d80d9. `:buffer-close` on an unmodified document would cause later panics since the document should not have been removed. Instead of eagerly removing the document on the first line we need to wait until we've checked that it's unmodified.