#858: FLUID: fixes control character replacement in widget browser

This commit is contained in:
Matthias Melcher 2023-12-02 16:21:49 +01:00
parent f72748bb45
commit d8dac2a088

View File

@ -1774,7 +1774,7 @@ const char *Fl_Comment_Type::title() {
if (n==0) break;
if (n=='\r') { *d++ = '\\'; *d++ = 'r'; i--; }
else if (n=='\n') { *d++ = '\\'; *d++ = 'n'; i--; }
else if (n<32) { *d++ = '^'; *d++ = 'A'+n; i--; }
else if ((n >= 0) && (n < 32)) { *d++ = '^'; *d++ = 'A'+n; i--; }
else *d++ = n;
}
if (i<=0) { *d++ = '.'; *d++ = '.'; *d++ = '.'; }