Skip to content

Commit

Permalink
[cliptext] do not display unmatched "[/]"
Browse files Browse the repository at this point in the history
  • Loading branch information
saulpw committed Oct 20, 2023
1 parent 846ac4d commit bda77b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visidata/cliptext.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def iterchunks(s, literal=False):
elif chunk.startswith('[/'): # pop last attr off stack
if len(attrstack) > 1:
attrstack.pop()
continue
continue # don't display trailing [/foo] ever
else: # push updated color on stack
newcolor = colors.get_color(chunk[2:-1])
if newcolor:
Expand Down

0 comments on commit bda77b1

Please sign in to comment.