diff --git a/lib/controllers/multi-file-patch-controller.js b/lib/controllers/multi-file-patch-controller.js index 1f4794c431..247f802c2a 100644 --- a/lib/controllers/multi-file-patch-controller.js +++ b/lib/controllers/multi-file-patch-controller.js @@ -109,9 +109,9 @@ export default class MultiFilePatchController extends React.Component { return this.props.surfaceFileAtPath(filePatch.getPath(), this.props.stagingStatus); } - async openFile(filePatch, positions) { + async openFile(filePatch, positions, pending) { const absolutePath = path.join(this.props.repository.getWorkingDirectoryPath(), filePatch.getPath()); - const editor = await this.props.workspace.open(absolutePath, {pending: true}); + const editor = await this.props.workspace.open(absolutePath, {pending}); if (positions.length > 0) { editor.setCursorBufferPosition(positions[0], {autoscroll: false}); for (const position of positions.slice(1)) {