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

Don't display <cr> if carriage-returns are in help buffer (fix for Win32).

parent 99c49c56
No related branches found
No related tags found
No related merge requests found
......@@ -1268,7 +1268,7 @@ void help()
" %s",p,helpline,api->helpixbfile);
else {
if((fp=fopen(api->helpdatfile,"rb"))==NULL)
sprintf(hbuf," ERROR  Cannot open help file:\r\n %s"
sprintf(hbuf," ERROR  Cannot open help file:\n %s"
,api->helpdatfile);
else {
fseek(fp,l,SEEK_SET);
......@@ -1321,6 +1321,8 @@ void help()
HelpWin->show();
for(j=0;j<len;j++) {
if(hbuf[j]=='\r') /* don't display <cr> */
continue;
if(hbuf[j]==2 || hbuf[j]=='~') { /* Ctrl-b toggles inverse */
if(inverse)
inverse=0;
......
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