summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/textbuf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textbuf.cpp b/src/textbuf.cpp
index 457388db7..f38bfd17b 100644
--- a/src/textbuf.cpp
+++ b/src/textbuf.cpp
@@ -190,7 +190,7 @@ bool Textbuf::InsertClipboard()
uint16 pixels = 0, bytes = 0, chars = 0;
WChar c;
for (const char *ptr = utf8_buf; (c = Utf8Consume(&ptr)) != '\0';) {
- if (!IsPrintable(c)) break;
+ if (!IsValidChar(c, this->afilter)) break;
byte len = Utf8CharLen(c);
if (this->bytes + bytes + len > this->max_bytes) break;