Date: Sun, 3 Apr 2022 22:33:52 +0200 From: "Alfonso S. Siciliano" <alf.siciliano@gmail.com> To: "Alfonso S. Siciliano" <asiciliano@FreeBSD.org> Cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: 9225c909fbc1 - main - bsddialog(1): Improve --hline (help subtitle) Message-ID: <20220403223352.7dad0d79fc16c59dd4e25ad3@gmail.com> In-Reply-To: <202204032027.233KRO7P000734@gitrepo.freebsd.org> References: <202204032027.233KRO7P000734@gitrepo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 3 Apr 2022 20:27:24 GMT "Alfonso S. Siciliano" <asiciliano@FreeBSD.org> wrote: > The branch main has been updated by asiciliano: > > URL: https://cgit.FreeBSD.org/src/commit/?id=9225c909fbc1478a1803e647d89f2e63cbac98f2 > > commit 9225c909fbc1478a1803e647d89f2e63cbac98f2 > Author: Alfonso S. Siciliano <asiciliano@FreeBSD.org> > AuthorDate: 2022-04-03 20:22:52 +0000 > Commit: Alfonso S. Siciliano <asiciliano@FreeBSD.org> > CommitDate: 2022-04-03 20:26:50 +0000 > > bsddialog(1): Improve --hline (help subtitle) > > Improvement for bsdconfig(8): avoid to draw delimiters (or spaces) on > the bottom line if the argument of --hline is an empty string. > --- > contrib/bsddialog/bsddialog.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/contrib/bsddialog/bsddialog.c b/contrib/bsddialog/bsddialog.c > index a902d751dab0..d84df4b494d9 100644 > --- a/contrib/bsddialog/bsddialog.c > +++ b/contrib/bsddialog/bsddialog.c > @@ -454,7 +454,8 @@ int main(int argc, char *argv[argc]) > conf.key.f1_file = optarg; > break; > case HLINE: > - conf.bottomtitle = optarg; > + if (strlen(optarg) > 0) > + conf.bottomtitle = optarg; > break; > case HMSG: > conf.key.f1_message = optarg; The commit is trivial, anyway I forgot to add Review, sorry: https://reviews.freebsd.org/D34757 Approved by bapt (mentor)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220403223352.7dad0d79fc16c59dd4e25ad3>