From: Juergen Spitzmueller Date: Sun, 22 Mar 2020 10:07:57 +0000 (+0100) Subject: Don't omit ZERO WIDTH NON-JOINER on clipboard paste X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=850cd221b888bc8c89499918af1763a7ff98c09a;p=features.git Don't omit ZERO WIDTH NON-JOINER on clipboard paste Fixes #11790 --- 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