Merge branch 'master' of github.com:mattgodbolt/compiler-explorer into asm_doc

This commit is contained in:
Rubén Rincón
2017-03-15 19:11:30 +01:00
+2 -2
View File
@@ -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);
}