migrate-config: mode foo → mode "foo" (+test) (Thanks cradle)

This commit is contained in:
Michael Stapelberg
2011-07-15 00:22:26 +02:00
parent 2d71102796
commit e117a8a77f
2 changed files with 14 additions and 2 deletions

View File

@ -179,7 +179,6 @@ sub convert_command {
my @unchanged_cmds = qw(
exec
mode
mark
kill
restart
@ -277,6 +276,12 @@ sub convert_command {
return;
}
if ($command =~ /^mode/) {
my ($parameters) = ($command =~ /^mode (.*)/);
print qq|$statement $key mode "$parameters"\n|;
return;
}
# the parameters of the resize command have changed
if ($command =~ /^resize/) {
# OLD: resize <left|right|top|bottom> [+|-]<pixels>\n")