Resize uses up and down, not bottom and top

- Fix userguide resize example
- Update migration script
This commit is contained in:
Peter Bui
2011-08-08 16:18:55 -04:00
committed by Michael Stapelberg
parent 5dcbb341d1
commit 3316d8b8ba
2 changed files with 9 additions and 4 deletions

View File

@ -289,6 +289,11 @@ sub convert_command {
my ($direction, $sign, $px) = ($command =~ /^resize (left|right|top|bottom) ([+-])([0-9]+)/);
my $cmd = 'resize ';
$cmd .= ($sign eq '+' ? 'grow' : 'shrink') . ' ';
if ($direction eq 'top') {
$direction = 'down';
} elsif ($direction eq 'bottom') {
$direction = 'up';
}
$cmd .= "$direction ";
$cmd .= "$px px";
print qq|$statement $key $cmd\n|;