From 8e07f48fff6ab5fdf5a1d4798b62aa27e3de826a Mon Sep 17 00:00:00 2001 From: Jason Rudolph Date: Thu, 22 Jun 2017 17:50:25 -0400 Subject: [PATCH] After staging file via core:confirm, show the next diff xref: https://github.com/atom/github/issues/854 --- lib/views/staging-view.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/views/staging-view.js b/lib/views/staging-view.js index c2e565f120..1548b25fe6 100644 --- a/lib/views/staging-view.js +++ b/lib/views/staging-view.js @@ -218,7 +218,10 @@ export default class StagingView { confirmSelectedItems() { const itemPaths = Array.from(this.selection.getSelectedItems()).map(item => item.filePath); - return this.props.attemptFileStageOperation(itemPaths, this.selection.getActiveListKey()); + this.props.attemptFileStageOperation(itemPaths, this.selection.getActiveListKey()); + this.selection.coalesce(); + this.debouncedDidChangeSelectedItem(); + return etch.update(this); } getNextListUpdatePromise() {