hide execute signs
This commit is contained in:
@@ -501,7 +501,9 @@ def colorify(s,opts):
|
||||
"${K}\\1${Z}"] # <Tags>
|
||||
for r in zip(rules,colors):
|
||||
s=re.sub(r[0],r[1],s)
|
||||
|
||||
# Replace executable commands with $ only in the beginning
|
||||
s=re.sub("\$[>!]","$",s,1)
|
||||
s=re.sub("\$[>!]","",s)
|
||||
c=bc.color_string(s)+bc.Z
|
||||
return c
|
||||
def cut_line(s,i):
|
||||
@@ -513,6 +515,7 @@ def cut_line(s,i):
|
||||
s)))
|
||||
return s
|
||||
def add_highlight(s,opts):
|
||||
""" Add cursor position highlight """
|
||||
if len(s.strip())==0:
|
||||
cleaned=HL
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user