window: fix error exit with the -m flag

When called with the -m flag window would always exit with
some error, usually status='no match', because of an if-match
being the last status-setting command in the script.
front
kvik 2020-09-16 13:12:13 +02:00
parent 537443d959
commit 58861fff63
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ if(~ $#mflag 1) {
exec $argv0 -x $cmd </dev/cons >/dev/cons >[2]/dev/cons
}
}&
exit ''
}
if not {
if(~ $wctl ''){