mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 17:07:32 -06:00
Merge branch 'master' of github.com:mattgodbolt/compiler-explorer into asm_doc
This commit is contained in:
+2
-2
@@ -163,9 +163,9 @@ define(function (require) {
|
||||
|
||||
this.outputEditor.onMouseMove(function (e) {
|
||||
if (e === null || e.target === null || e.target.position === null) return;
|
||||
if (self.settings.hoverShowSource === true && !self.assembly) {
|
||||
if (self.settings.hoverShowSource === true && self.assembly) {
|
||||
var desiredLine = e.target.position.lineNumber - 1;
|
||||
if (!self.assembly[desiredLine]) {
|
||||
if (self.assembly[desiredLine]) {
|
||||
// We check that we actually have something to show at this point!
|
||||
self.eventHub.emit('editorSetDecoration', self.sourceEditorId, self.assembly[desiredLine].source);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user