aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-08-12 01:28:02 +0200
committerGravatar Tom Willemse2013-08-12 01:28:02 +0200
commit159f9d2187215e3f4c1b6ce82b9388686ce3574a (patch)
tree5e1b1cc5deab5c8d9c29f3426eda35f7fadc96fc
parent5c6d14bca8de104b0495c0c15d12f37fac6c933d (diff)
downloadurxvt-modeline-159f9d2187215e3f4c1b6ce82b9388686ce3574a.tar.gz
urxvt-modeline-159f9d2187215e3f4c1b6ce82b9388686ce3574a.zip
Pass the number of columns to the command
Users can use this to align their text.
-rwxr-xr-xmodeline2
1 files changed, 1 insertions, 1 deletions
diff --git a/modeline b/modeline
index ea28848..a73ca84 100755
--- a/modeline
+++ b/modeline
@@ -45,7 +45,7 @@ sub refresh {
my $text = " " x $ncol;
my $rend = [($self->{rs_tabbar}) x $ncol];
- my $output = `$self->{command}`;
+ my $output = `$self->{command} $ncol`;
substr $text, 0, length $output, $output;
my $idx = 0;