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

Commit

Permalink
Fix #261
Browse files Browse the repository at this point in the history
  • Loading branch information
akonwi committed Aug 17, 2015
1 parent 7f691ed commit 0259e3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Changelog

### 5.4.2
- #261

### 5.4.1
- #260: Destroy 'COMMIT_EDITMSG' pane not just editor

Expand Down
2 changes: 1 addition & 1 deletion lib/models/git-commit.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class GitCommit
@cleanup()
atom.workspace.getPanes().some (pane) ->
pane.getItems().some (paneItem) ->
if paneItem.getURI().includes 'COMMIT_EDITMSG'
if paneItem?.getURI?()?.includes 'COMMIT_EDITMSG'
if pane.getItems().length is 1
pane.destroy()
else
Expand Down

0 comments on commit 0259e3b

Please sign in to comment.