]> git.lyx.org Git - features.git/commitdiff
Don't omit ZERO WIDTH NON-JOINER on clipboard paste
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 22 Mar 2020 10:07:57 +0000 (11:07 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:55 +0000 (15:48 +0200)
Fixes #11790

src/Text.cpp

index 10873304823a86ee0e557fded4cde64768211241..25ce684d22221f7d50e5cba5db21569781ba53a1 100644 (file)
@@ -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