Commit c087e439 authored by Jacob Schatz's avatar Jacob Schatz

Fix line numbering.

parent 6cbeedb6
......@@ -58,9 +58,10 @@ const RepoEditor = {
},
onMonacoEditorMouseUp(e) {
const lineNumber = e.target.position.lineNumber;
if (e.target.element.className === 'line-numbers') {
location.hash = `L${e.target.position.lineNumber}`;
Store.activeLine = e.target.position.lineNumber;
location.hash = `L${lineNumber}`;
Store.activeLine = lineNumber;
}
},
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment