summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Help_View.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx
index 9ecef37a0..c4d7a820e 100644
--- a/src/Fl_Help_View.cxx
+++ b/src/Fl_Help_View.cxx
@@ -3098,8 +3098,8 @@ void Fl_Help_View::end_selection(int clipboard)
}
int n = (int) (s2-value_);
if (n>selection_first && n<=selection_last) {
- if (!pre && isspace(c)) c = ' ';
- if (p!=' ' || c!=' ') {
+ if (!pre && c < 256 && isspace(c)) c = ' ';
+ if (p != ' ' || c != ' ') {
if (s2 != s) { // c was an HTML entity
d += fl_utf8encode(c, d);
}
@@ -3111,7 +3111,7 @@ void Fl_Help_View::end_selection(int clipboard)
}
*d = 0;
Fl::copy(txt, (int) strlen(txt), clipboard);
-//printf("copy [%s]\n", txt);
+ // printf("copy [%s]\n", txt);
free(txt);
}