From 159f9d2187215e3f4c1b6ce82b9388686ce3574a Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 12 Aug 2013 01:28:02 +0200 Subject: [PATCH] Pass the number of columns to the command Users can use this to align their text. --- modeline | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;