From: op Date: Tue, 24 Oct 2023 10:26:02 +0000 (+0000) Subject: call vttidy() in the exit path for the batch mode X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fff97f7f9d5be936f8c688f8dc538dd79c2212c0;p=openbsd call vttidy() in the exit path for the batch mode Diff by Mark Willson (mark [at] hydrus.org.uk), thank you! --- diff --git a/usr.bin/mg/main.c b/usr.bin/mg/main.c index d31c89b1d0b..56ef7d9a042 100644 --- a/usr.bin/mg/main.c +++ b/usr.bin/mg/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.95 2023/04/14 15:34:08 tb Exp $ */ +/* $OpenBSD: main.c,v 1.96 2023/10/24 10:26:02 op Exp $ */ /* This file is in the public domain. */ @@ -167,8 +167,10 @@ main(int argc, char **argv) ffclose(ffp, NULL); } - if (batch) + if (batch) { + vttidy(); return (0); + } /* * Now ensure any default buffer modes from the startup file are