X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit%2Ftabs.c;h=90dac77b0be8c8e7e5e614e2f57163510adc649d;hp=d6172de36f9832c7ff512e075b4e47e3d034104b;hb=b98d9f087b3a24a9549470ab066c2aea187ecfba;hpb=ff76a556a7974e6bc13e639905186c25b00589ec diff --git a/webcit/tabs.c b/webcit/tabs.c index d6172de36..90dac77b0 100644 --- a/webcit/tabs.c +++ b/webcit/tabs.c @@ -1,7 +1,3 @@ -/* - * $Id$ - * - */ #include #define SHOW_ME_VAPPEND_PRINTF #include "webcit.h" @@ -86,13 +82,6 @@ void end_tab(int tabnum, int num_tabs) { else { wc_printf("\n"); wc_printf("\n", tabnum, num_tabs); - - if (tabnum == num_tabs-1) { - wc_printf("" - ); - } } } @@ -173,7 +162,7 @@ void StrBeginTab(StrBuf *Target, int tabnum, int num_tabs, StrBuf **Names) { else { StrBufAppendBufPlain( Target, - HKEY("\n", tabnum, num_tabs); - - if (tabnum == num_tabs-1) { - StrBufAppendBufPlain( - Target, - HKEY( - ""), 0); - } + "\n", tabnum, num_tabs + ); + } + if (havebstr("last_tabsel")) + { + StrBufAppendPrintf(Target, "", BSTR("last_tabsel")); } }