git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
830512d
)
termcol: fix reordered named descriptions
author
Mischa POSLAWSKY
<perl@shiar.org>
Mon, 21 Dec 2015 00:23:55 +0000
(
01:23
+0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 5 Jan 2016 00:05:07 +0000
(
01:05
+0100)
termcol.plp
patch
|
blob
|
history
diff --git
a/termcol.plp
b/termcol.plp
index 0068a78d7b5c73f998214891b79f52b53c10983b..b79f8410d931900b0765bcc2cb8233e2d6a7f3c8 100644
(file)
--- a/
termcol.plp
+++ b/
termcol.plp
@@
-162,7
+162,7
@@
for my $term (@termlist) {
sub colorder {
my ($palette, $reorder) = @_;
- return [ map { $palette->[$_] =~ s/:
|$/:$_/r } @{$reorder} ];
+ return [ map { $palette->[$_] =~ s/:
(?![^:])|$/:$_/r } @{$reorder} ]
if $reorder;
return $palette;
}