Skip to content
Snippets Groups Projects
Commit 10873de8 authored by rswindell's avatar rswindell
Browse files

If the file text/menu/msgtabs.* exists, it will be displayed as the "tab bar"

in the internal editor instead of the hard-coded tab bar.
parent 302f3515
No related branches found
No related tags found
No related merge requests found
......@@ -522,6 +522,7 @@ ulong sbbs_t::msgeditor(char *buf, char *top, char *title)
int i,j,line,lines=0,maxlines;
char strin[256],**str,done=0;
char tmp[512];
char path[MAX_PATH+1];
ulong l,m;
if(online==ON_REMOTE) {
......@@ -569,11 +570,17 @@ ulong sbbs_t::msgeditor(char *buf, char *top, char *title)
if(lines)
bprintf("\r\nMessage editor: Read in %d lines\r\n",lines);
bprintf(text[EnterMsgNow],maxlines);
for(i=0;i<79;i++)
if(i%TABSIZE || !i)
outchar('-');
else outchar('+');
CRLF;
sprintf(path,"%smenu/msgtabs.*", cfg.text_dir);
if(fexist(path))
menu("msgtabs");
else {
for(i=0;i<79;i++)
if(i%TABSIZE || !i)
outchar('-');
else outchar('+');
CRLF;
}
putmsg(top,P_SAVEATR|P_NOATCODES);
for(line=0;line<lines && !msgabort();line++) { /* display lines in buf */
putmsg(str[line],P_SAVEATR|P_NOATCODES);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment