From 159f9d2187215e3f4c1b6ce82b9388686ce3574a Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 12 Aug 2013 01:28:02 +0200 Subject: 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; -- cgit v1.2.3-54-g00ecf