From 7b3404fcab0e2530964444261d411814c03eaeba Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 22 Mar 2020 11:07:57 +0100 Subject: [PATCH] Don't omit ZERO WIDTH NON-JOINER on clipboard paste Fixes #11790 --- src/Text.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Text.cpp b/src/Text.cpp index 1087330482..25ce684d22 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -895,8 +895,8 @@ void Text::insertStringAsLines(Cursor & cur, docstring const & str, ++pos; space_inserted = true; } - } else if (!isPrintable(ch)) { - // Ignore unprintables + } else if (!isPrintable(ch) && ch != 0x200c) { + // Ignore unprintables, except for ZWNJ (0x200c) continue; } else { // just insert the character -- 2.39.5