hide execute signs

This commit is contained in:
Ville Rantanen
2016-02-26 09:10:02 +02:00
parent 3bc8ec9902
commit 19a6d57a27

View File

@@ -501,7 +501,9 @@ def colorify(s,opts):
"${K}\\1${Z}"] # <Tags> "${K}\\1${Z}"] # <Tags>
for r in zip(rules,colors): for r in zip(rules,colors):
s=re.sub(r[0],r[1],s) 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 c=bc.color_string(s)+bc.Z
return c return c
def cut_line(s,i): def cut_line(s,i):
@@ -513,6 +515,7 @@ def cut_line(s,i):
s))) s)))
return s return s
def add_highlight(s,opts): def add_highlight(s,opts):
""" Add cursor position highlight """
if len(s.strip())==0: if len(s.strip())==0:
cleaned=HL cleaned=HL
else: else: