<p dir="auto">If you make a change, scroll so that line is off screen, and undo, the editor should scroll back to the changed line. This is the normal behavior (at least in OS X) and I rely on it heavily as I work.</p>
<p dir="auto">Steps to reproduce.</p>
<ol dir="auto">
<li><code class="notranslate">git checkout master</code></li>
<li><code class="notranslate">git checkout -b new_feature</code></li>
<li>Open Atom with no files loaded.</li>
<li>Open an existing file and modify it. Keep it open.</li>
<li><code class="notranslate">git commit -am "Modifying file"</code></li>
<li><code class="notranslate">git checkout master</code></li>
</ol>
<p dir="auto">At this point you'd expect to see that the edits which you made would be gone since you are now viewing a different branch. However, the edits show up and git diff even highlights them.</p>
<p dir="auto">Also PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="23988467" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/1271" data-hovercard-type="pull_request" data-hovercard-url="/atom/atom/pull/1271/hovercard" href="https://github.com/atom/atom/pull/1271">#1271</a> supposedly fixed <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="17838157" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/693" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/693/hovercard" href="https://github.com/atom/atom/issues/693">#693</a> (Closing file buffers when a file gets removed via git i.e. switching branches, deleting, etc.) but that is not happening for me. When I switch branches and a file gets removed, it stays open in Atom with no indication that it's not supposed to be there.</p>
<p dir="auto">Edit: Personally I think a file getting removed via git should automatically close the buffer, while a file getting removed in another way should prompt you. "This file no longer exists, do you want to keep it open?". This is how Notepad++ handles the situation and I think that is the best way.</p>