Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Accept a pending argument in openFile action method
Browse files Browse the repository at this point in the history
  • Loading branch information
smashwilson committed Nov 13, 2018
1 parent a9ed6cb commit c068bbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/controllers/multi-file-patch-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit c068bbf

Please sign in to comment.