Skip to content

Commit

Permalink
Fix error line number for webppl 0.9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
longouyang committed Oct 18, 2016
1 parent 9a6d203 commit 93be502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ var CodeEditor = React.createClass({
// We can use the following information for highlighting a
// suitable point in the user program.
var wpplError = error.wpplError,
lineNumber = wpplError.lineNumber - 1,
lineNumber = wpplError.lineNumber,
columnNumber = wpplError.columnNumber,
endColumn = wpplError.name ? columnNumber + wpplError.name.length : Infinity;
var cm = comp.refs.editor.getCodeMirror();
Expand Down

0 comments on commit 93be502

Please sign in to comment.