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

Commit

Permalink
Fixes #593
Browse files Browse the repository at this point in the history
  • Loading branch information
akonwi committed Jan 10, 2017
1 parent f64c6e8 commit 26dce9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/models/git-show.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ prepFile = (text, objectHash) ->
showFile = (objectHash) ->
filePath = showCommitFilePath(objectHash)
disposables = new CompositeDisposable
editorForDiffs = atom.workspace.getPaneItems().filter((item) -> item.getURI().includes('.diff'))[0]
if editorForDiffs
editorForDiffs = atom.workspace.getPaneItems().filter((item) -> item.getURI()?.includes('.diff'))[0]
if editorForDiffs?
editorForDiffs.setText fs.readFileSync(filePath, encoding: 'utf-8')
else
if atom.config.get('git-plus.general.openInPane')
Expand Down

0 comments on commit 26dce9f

Please sign in to comment.