Skip to content

Commit

Permalink
Diff editor does not ask to save when closing (fixes #13095)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Oct 6, 2016
1 parent 782e3ad commit 98c9e61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/browser/parts/editor/editorPart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ export class EditorPart extends Part implements IEditorPart, IEditorGroupService
editors.push(editor.modifiedInput);
}

return editors.reduce((prev, e) => prev += this.stacks.count(editor), 0);
return editors.reduce((prev, e) => prev += this.stacks.count(e), 0);
}

public getStacksModel(): EditorStacksModel {
Expand Down

0 comments on commit 98c9e61

Please sign in to comment.