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.
This commit is contained in:
Alfonso S. Siciliano 2022-04-03 22:22:52 +02:00
parent 1d3f2ddc32
commit 9225c909fb
No known key found for this signature in database
GPG Key ID: 3F9EEFACFD371E37

View File

@ -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;