Fix line numbering.
This commit is contained in:
parent
6cbeedb6ba
commit
c087e4395e
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue