mirror of
https://github.com/atom/atom.git
synced 2026-02-15 09:05:58 -05:00
Don't track closed sessions with no path
This commit is contained in:
@@ -492,7 +492,7 @@ class Editor extends View
|
||||
editSession = @editSessions[index]
|
||||
destroySession = =>
|
||||
path = editSession.getPath()
|
||||
@closedEditSessions.push({path, index})
|
||||
@closedEditSessions.push({path, index}) if path
|
||||
editSession.destroy()
|
||||
callback?(index)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user