From 8bce0525375ced5e5145dfe15383c5faa7175e1b Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 23 Mar 2015 11:49:15 +0100 Subject: [PATCH] Do not hightlight the whole document when debugging. --- mix/qml/html/codeeditor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mix/qml/html/codeeditor.js b/mix/qml/html/codeeditor.js index 102ba97a6..daf1286d8 100644 --- a/mix/qml/html/codeeditor.js +++ b/mix/qml/html/codeeditor.js @@ -132,6 +132,8 @@ var executionMark; highlightExecution = function(start, end) { if (executionMark) executionMark.clear(); + if (start === 0 && end + 1 === editor.getValue().length) + return; // Do not hightlight the whole document. executionMark = editor.markText(editor.posFromIndex(start), editor.posFromIndex(end), { className: "CodeMirror-exechighlight" }); }