From e4ed3cf978226cba2b2119baeb7c05e8eca62dd5 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Tue, 14 May 2013 18:38:45 +0100 Subject: [PATCH] Call updateByteDisplay on events To match updates on updateCharDisplay --- editor.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor.php b/editor.php index f34055b..941aec7 100644 --- a/editor.php +++ b/editor.php @@ -155,6 +155,7 @@ function createNewCMInstance(num) { top.ICEcoder.findReplace(top.document.getElementById('find').value,true,false); top.ICEcoder.getCaretPosition(); top.ICEcoder.updateCharDisplay(); + top.ICEcoder.updateByteDisplay(); tok = thisCM.getTokenAt(thisCM.getCursor()); } }); @@ -162,6 +163,7 @@ function createNewCMInstance(num) { window['cM'+num].on("cursorActivity", function(thisCM) { top.ICEcoder.getCaretPosition(); top.ICEcoder.updateCharDisplay(); + top.ICEcoder.updateByteDisplay(); window['cM'+num].removeLineClass(top.ICEcoder['cMActiveLine'+num], "background"); if(window['cM'+num].getCursor('start').line == window['cM'+num].getCursor().line) { top.ICEcoder['cMActiveLine'+num] = window['cM'+num].addLineClass(window['cM'+num].getCursor().line, "background","cm-s-activeLine"); @@ -179,6 +181,7 @@ function createNewCMInstance(num) { top.ICEcoder.getCaretPosition(); top.ICEcoder.dontUpdateNest = false; top.ICEcoder.updateCharDisplay(); + top.ICEcoder.updateByteDisplay(); top.ICEcoder.updateNestingIndicator(); if (top.ICEcoder.findMode) { top.ICEcoder.results.splice(top.ICEcoder.findResult,1);