Date: Sun, 3 Apr 2022 20:27:24 GMT From: "Alfonso S. Siciliano" <asiciliano@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 9225c909fbc1 - main - bsddialog(1): Improve --hline (help subtitle) Message-ID: <202204032027.233KRO7P000734@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204032027.233KRO7P000734>