WIP adding searching capabilities in python files. was done : search_in_CTN
authorEdouard Tisserant
Thu, 21 Mar 2019 13:10:49 +0100
branchsearch_in_CTN
changeset 2526 450c6239ee75
parent 2525 9812b332f350
child 2527 f47e397e9b61
WIP adding searching capabilities in python files. was done :
- fixed highlighting search result in text body of CTN code editor.
editors/CodeFileEditor.py
--- a/editors/CodeFileEditor.py	Thu Mar 21 13:04:26 2019 +0100
+++ b/editors/CodeFileEditor.py	Thu Mar 21 13:10:49 2019 +0100
@@ -936,13 +936,13 @@
         if self.VariablesPanel is not None and infos[0] == "var_inout":
             self.VariablesPanel.AddVariableHighlight(infos[1:], highlight_type)
         else:
-            self.CodeEditor.AddHighlight(infos, start, end, highlight_type)
+            self.CodeEditor.AddHighlight(start, end, highlight_type)
 
     def RemoveHighlight(self, infos, start, end, highlight_type):
         if self.VariablesPanel is not None and infos[0] == "var_inout":
             self.VariablesPanel.RemoveVariableHighlight(infos[1:], highlight_type)
         else:
-            self.CodeEditor.RemoveHighlight(infos, start, end, highlight_type)
+            self.CodeEditor.RemoveHighlight(start, end, highlight_type)
 
     def ClearHighlights(self, highlight_type=None):
         if self.VariablesPanel is not None: