# HG changeset patch
# User Edouard Tisserant <edouard.tisserant@gmail.com>
# Date 1517227009 -3600
# Node ID 7dd49b65208b7e7ae444c8f0dea600e408b45299
# Parent  084256be365877896d45348b352f51b8f76760cd
Textviewer : moved call to Colourise in a better place, so that ST highlighting gets also updated when typing in some case, not only IL

diff -r 084256be3658 -r 7dd49b65208b editors/TextViewer.py
--- a/editors/TextViewer.py	Fri Jan 19 15:12:23 2018 +0100
+++ b/editors/TextViewer.py	Mon Jan 29 12:56:49 2018 +0100
@@ -424,7 +424,6 @@
     def RefreshJumpList(self):
         if self.TextSyntax == "IL":
             self.Jumps = [jump.upper() for jump in LABEL_MODEL.findall(self.GetText())]
-            self.Colourise(0, -1)
 
     # Buffer the last model state
     def RefreshBuffer(self):
@@ -848,6 +847,7 @@
 
     def RefreshModel(self):
         self.RefreshJumpList()
+        self.Colourise(0, -1)
         self.Controler.SetEditedElementText(self.TagName, self.GetText())
         self.ResetSearchResults()