<p dir="auto">In Atom 0.98.0, deleting a file from the tree view which is also open causes the below exception.  It probably should not.</p>
<p dir="auto">Uncaught TypeError: Cannot call method 'getBufferPosition' of undefined /Applications/Atom.app/Contents/Resources/app/src/editor.js:1321<br>
module.exports.Editor.getCursorBufferPosition /Applications/Atom.app/Contents/Resources/app/src/editor.js:1321<br>
StatusBarView.render statusbar-view.coffee:18<br>
LinterView.displayStatusBar linter-view.coffee:163<br>
(anonymous function) linter-view.coffee:41<br>
jQuery.event.dispatch /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4676<br>
elemData.handle /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4360<br>
jQuery.event.trigger /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4594<br>
(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:5119<br>
jQuery.extend.each /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:590<br>
jQuery.fn.jQuery.each /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:237<br>
jQuery.fn.extend.trigger /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:5118<br>
module.exports.PaneView.onActiveItemChanged /Applications/Atom.app/Contents/Resources/app/src/pane-view.js:305<br>
(anonymous function) /Applications/Atom.app/Contents/Resources/app/src/pane-view.js:3<br>
(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/emitter.js:133<br>
module.exports.Emitter.emit /Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/emitter.js:132<br>
module.exports.Behavior.emit /Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/behavior.js:44<br>
module.exports.Signal.emitValue /Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/signal.js:82<br>
module.exports.Model.set /Applications/Atom.app/Contents/Resources/app/node_modules/theorist/lib/model.js:166<br>
accessor.set /Applications/Atom.app/Contents/Resources/app/node_modules/theorist/lib/model.js:57<br>
module.exports.Pane.activateItem /Applications/Atom.app/Contents/Resources/app/src/pane.js:175<br>
_results.push._this.(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/delegato/lib/delegator.js:67<br>
(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/tabs/lib/tab-bar-view.js:148<br>
jQuery.event.dispatch /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4676<br>
elemData.handle /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4360</p>
<h2 dir="auto">Repro Steps</h2>
<ol dir="auto">
<li>Open Atom</li>
<li>Create file <code class="notranslate">foo.md</code></li>
<li>Highlight file in tree view</li>
<li>Press Delete button</li>
<li>Click "Delete" option (not "Move to Trash")</li>
</ol>
<p dir="auto"><strong>Expected:</strong> No error occurs<br>
<strong>Actual:</strong> Exception happens:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught TypeError: Cannot call method 'getScreenRow' of undefined 

/Applications/Atom.app/Contents/Resources/app/src/editor.js:1311"><pre lang="text" class="notranslate"><code class="notranslate">Uncaught TypeError: Cannot call method 'getScreenRow' of undefined 

/Applications/Atom.app/Contents/Resources/app/src/editor.js:1311
</code></pre></div>