mirror of
https://github.com/atom/atom.git
synced 2026-02-13 08:04:56 -05:00
Apply CR
This commit is contained in:
@@ -879,7 +879,7 @@ class TextEditor extends Model
|
||||
# Determine whether the user should be prompted to save before closing
|
||||
# this editor.
|
||||
shouldPromptToSave: ({windowCloseRequested, projectHasPaths}={}) ->
|
||||
if windowCloseRequested && projectHasPaths
|
||||
if windowCloseRequested and projectHasPaths
|
||||
false
|
||||
else
|
||||
@isModified() and not @buffer.hasMultipleEditors()
|
||||
|
||||
Reference in New Issue
Block a user