Skip to content

Commit

Permalink
Merge pull request #68 from tcarlsen/jf-fix-deprecations
Browse files Browse the repository at this point in the history
Fix Deprecations
  • Loading branch information
tcarlsen committed May 1, 2015
2 parents 2deb9dc + da8a987 commit ad72483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/LineMessageView.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ LineMessageView.prototype.goToLine = function () {
activeFile,
activeEditor = atom.workspace.getActiveEditor();
if (activeEditor !== undefined && activeEditor !== null) {
activeFile = Path.relative(atom.project.rootDirectories[0].path, activeEditor.getUri());
activeFile = Path.relative(atom.project.rootDirectories[0].path, activeEditor.getURI());
}

if (this.file !== undefined && this.file !== activeFile) {
Expand All @@ -57,7 +57,7 @@ LineMessageView.prototype.goToLine = function () {
initialColumn: char
});
} else {
atom.workspace.getActiveEditor().cursors[0].setBufferPosition([this.line - 1, char]);
atom.workspace.getActiveTextEditor().cursors[0].setBufferPosition([this.line - 1, char]);
}
};

Expand Down

0 comments on commit ad72483

Please sign in to comment.