Fix line numbering.

This commit is contained in:
Jacob Schatz 2017-08-06 11:39:02 -04:00
parent 6cbeedb6ba
commit c087e4395e

View file

@ -58,9 +58,10 @@ const RepoEditor = {
}, },
onMonacoEditorMouseUp(e) { onMonacoEditorMouseUp(e) {
const lineNumber = e.target.position.lineNumber;
if (e.target.element.className === 'line-numbers') { if (e.target.element.className === 'line-numbers') {
location.hash = `L${e.target.position.lineNumber}`; location.hash = `L${lineNumber}`;
Store.activeLine = e.target.position.lineNumber; Store.activeLine = lineNumber;
} }
}, },
}, },