From fff97f7f9d5be936f8c688f8dc538dd79c2212c0 Mon Sep 17 00:00:00 2001 From: op Date: Tue, 24 Oct 2023 10:26:02 +0000 Subject: [PATCH] call vttidy() in the exit path for the batch mode Diff by Mark Willson (mark [at] hydrus.org.uk), thank you! --- usr.bin/mg/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.20.1