mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
We might have two edit sessions pointing to the same buffer, for example if we have a split pane… So when we deserialize a buffer, we always need to check that we don't already have an instance of that buffer on the project. If we do, then we've already deserialized it once so we don't need to worry about the saved text. We still have a problem when deserializing previously unsaved buffers, because we can't use the path to identify them.