Re: git: 9225c909fbc1 - main - bsddialog(1): Improve --hline (help subtitle)
Date: Sun, 03 Apr 2022 20:33:52 UTC
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)