hide execute signs
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user