[init_banner] no extra space when we don't know a version

pull/2292/head
nick black 3 years ago
parent 86b81dfbd1
commit 06de7ac582
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -41,10 +41,11 @@ int init_banner(const notcurses* nc, fbuf* f){
}
if(!nc->suppress_banner){
term_fg_palindex(nc, f, 50 % nc->tcache.caps.colors);
fbuf_printf(f, "%snotcurses %s on %s %s (%s)" NL,
fbuf_printf(f, "%snotcurses %s on %s %s%s(%s)" NL,
clreol, notcurses_version(),
nc->tcache.termname ? nc->tcache.termname : "?",
nc->tcache.termversion ? nc->tcache.termversion : "",
nc->tcache.termversion ? " " : "",
osname());
term_fg_palindex(nc, f, nc->tcache.caps.colors <= 256 ?
14 % nc->tcache.caps.colors : 0x2080e0);

Loading…
Cancel
Save