Fix status line: drops dependence from GOLDMARK char

This commit is contained in:
Stas Degteff 2005-09-26 16:07:14 +00:00
parent 978d811621
commit 5e71adb5da
2 changed files with 5 additions and 3 deletions

View File

@ -10,6 +10,9 @@ ______________________________________________________________________
Notes for GoldED+ 1.1.5, /snapshot/ Notes for GoldED+ 1.1.5, /snapshot/
______________________________________________________________________ ______________________________________________________________________
+ Don't use a GOLDMARK char in default status line.
(Patch from Ianos Gnatiuc 2:5030/830.17)
+ New reply-linking features: show floating reply link threads and show + New reply-linking features: show floating reply link threads and show
messages without replies in replylinking threads view. New config file messages without replies in replylinking threads view. New config file
tokens: REPLYLINKFLOAT (yes/no), REPLYLINKSHOWALWAYS (Yes/No). tokens: REPLYLINKFLOAT (yes/no), REPLYLINKSHOWALWAYS (Yes/No).

View File

@ -63,12 +63,11 @@ void update_statuslines() {
else if(CFG->statuslinehelp) else if(CFG->statuslinehelp)
sprintf(help, "%s ", LNG->StatusLineHelp); sprintf(help, "%s ", LNG->StatusLineHelp);
else else
sprintf(help, "%s%s%s%s%c%s%i.%i.%i%s ", sprintf(help, "%s%s%s%s %s%i.%i.%i%s ",
__gver_prename__, __gver_prename__,
__gver_name__, __gver_name__,
__gver_postname__, __gver_postname__,
__gver_platform__, __gver_platform__,
goldmark,
__gver_preversion__, __gver_preversion__,
__gver_major__, __gver_major__,
__gver_minor__, __gver_minor__,
@ -79,7 +78,7 @@ void update_statuslines() {
int help_len = strlen(help); int help_len = strlen(help);
int clk_len = strlen(clkinfo); int clk_len = strlen(clkinfo);
int len = MAXCOL-help_len-clk_len-2; int len = MAXCOL-help_len-clk_len-2;
sprintf(buf, " %s%-*.*s%s ", help, len, len, information, clkinfo); sprintf(buf, "%c%s%-*.*s%s ", goldmark, help, len, len, information, clkinfo);
char *begin = buf; char *begin = buf;
char *obegin = old_status_line; char *obegin = old_status_line;