diff --git a/src/extensionsIntegrated/CSSColorPreview/main.js b/src/extensionsIntegrated/CSSColorPreview/main.js index 1ac6a499c3..e5b03b5c5e 100644 --- a/src/extensionsIntegrated/CSSColorPreview/main.js +++ b/src/extensionsIntegrated/CSSColorPreview/main.js @@ -248,6 +248,8 @@ define(function (require, exports, module) { if (activeEditor) { activeEditor.off("change", onChanged); activeEditor.on("change", onChanged); + activeEditor.off("cursorActivity.colorPreview"); + activeEditor.on("cursorActivity.colorPreview", _cursorActivity); showColorMarks(); _cursorActivity(null, activeEditor); }