Skip to content
Snippets Groups Projects
Commit 124a98d3 authored by Henning Glawe's avatar Henning Glawe
Browse files

split no-highlight conditions

parent ee067a4e
No related branches found
No related tags found
No related merge requests found
......@@ -19,9 +19,13 @@ class MatchHighlighter(object):
self.highlightMode=highlightMode
def highlight(self,match,lineOrig):
# shortcut: there is nothing to highlight
if (not match) or (self.highlightMode==0):
# shortcut: we don't want highlighting
if (self.highlightMode == 0):
return(lineOrig)
# shortcut: there is nothing to highlight
if not match:
return lineOrig
# list with the highlight switching events
# tuples: (pos, event, ansi)
# event:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment