Skip to content
Snippets Groups Projects
Commit e869fb90 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Show the editor information file in the proper case (lower or upper)

... based on the configuration setting.
Also, prompt for upper or lowercase after setting the editor information file type, so no "door drop file" needs to be selected to change the case of the editor information file. - reported by mlong
parent 8a4698c5
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #850 passed
...@@ -1693,8 +1693,11 @@ void xedit_cfg() ...@@ -1693,8 +1693,11 @@ void xedit_cfg()
sprintf(opt[k++],"%-32.32s%s","Automatically Quoted Text" sprintf(opt[k++],"%-32.32s%s","Automatically Quoted Text"
,cfg.xedit[i]->misc&QUOTEALL ? "All":cfg.xedit[i]->misc&QUOTENONE ,cfg.xedit[i]->misc&QUOTEALL ? "All":cfg.xedit[i]->misc&QUOTENONE
? "None" : "Prompt User"); ? "None" : "Prompt User");
sprintf(opt[k++],"%-32.32s%s","Editor Information Files" SAFECOPY(str, cfg.xedit[i]->misc&QUICKBBS ? "MSGINF/MSGTMP ": "EDITOR.INF/RESULT.ED");
,cfg.xedit[i]->misc&QUICKBBS ? "QuickBBS MSGINF/MSGTMP":"WWIV EDITOR.INF/RESULT.ED"); if(cfg.xedit[i]->misc&XTRN_LWRCASE)
strlwr(str);
sprintf(opt[k++],"%-32.32s%s %s","Editor Information Files"
,cfg.xedit[i]->misc&QUICKBBS ? "QuickBBS":"WWIV", str);
sprintf(opt[k++],"%-32.32s%s","Expand Line Feeds to CRLF" sprintf(opt[k++],"%-32.32s%s","Expand Line Feeds to CRLF"
,cfg.xedit[i]->misc&EXPANDLF ? "Yes":"No"); ,cfg.xedit[i]->misc&EXPANDLF ? "Yes":"No");
const char* p; const char* p;
...@@ -2008,6 +2011,7 @@ void xedit_cfg() ...@@ -2008,6 +2011,7 @@ void xedit_cfg()
cfg.xedit[i]->misc&=~QUICKBBS; cfg.xedit[i]->misc&=~QUICKBBS;
uifc.changes=TRUE; uifc.changes=TRUE;
} }
goto lowercase_filename;
break; break;
case 11: case 11:
k=(cfg.xedit[i]->misc&EXPANDLF) ? 0:1; k=(cfg.xedit[i]->misc&EXPANDLF) ? 0:1;
...@@ -2132,6 +2136,7 @@ void xedit_cfg() ...@@ -2132,6 +2136,7 @@ void xedit_cfg()
uifc.changes=TRUE; uifc.changes=TRUE;
} }
if(cfg.xedit[i]->type) { if(cfg.xedit[i]->type) {
lowercase_filename:
k=(cfg.xedit[i]->misc&XTRN_LWRCASE) ? 0:1; k=(cfg.xedit[i]->misc&XTRN_LWRCASE) ? 0:1;
k=uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0,"Lowercase Filename",uifcYesNoOpts); k=uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0,"Lowercase Filename",uifcYesNoOpts);
if(k==0 && !(cfg.xedit[i]->misc&XTRN_LWRCASE)) { if(k==0 && !(cfg.xedit[i]->misc&XTRN_LWRCASE)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment