Skip to content

Commit ca9f35a

Browse files
author
jerp
committed
avoid open empty buffer - Fixes #4
avoid open empty buffer when not clicking on a link in the test log
1 parent 30a8449 commit ca9f35a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/elixir-cmd-view.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ class ElixirCmdView extends View
5757
atom.workspaceView.command 'elixir-cmd:kill-process', => @stop()
5858

5959
gotoFile: ({target: target}) ->
60-
atom.workspace.openSync target.getAttribute("file")
60+
return unless file=target.getAttribute("file")
61+
atom.workspace.openSync file
6162
return unless (lineno = target.getAttribute("lineno"))
6263
editor = atom.workspace.getActiveEditor()
6364
editor.moveToTop()

0 commit comments

Comments
 (0)