]> 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)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 23 Mar 2020 16:25:04 +0000 (17:25 +0100)
Fixes #11790

(cherry picked from commit 7b3404fcab0e2530964444261d411814c03eaeba)

src/Text.cpp
status.23x

index 2d916c834b3c08265e0d3938866e2d0201eeda33..6e81268caeb6e11cf49def06aa6526a061cdfe43 100644 (file)
@@ -866,8 +866,8 @@ void Text::insertStringAsLines(Cursor & cur, docstring const & str,
                                ++pos;
                                space_inserted = true;
                        }
-               } else if (!isPrintable(*cit)) {
-                       // Ignore unprintables
+               } else if (!isPrintable(*cit) && *cit != 0x200c) {
+                       // Ignore unprintables, except for ZWNJ (0x200c)
                        continue;
                } else {
                        // just insert the character
index cf3a79311f58408905ffa5fe7881e510a01d9919..d33f2219d7feb1a812834845d4f2f33a6e693990 100644 (file)
@@ -78,6 +78,8 @@ What's new
 
 - Fix over-hasty resetting of dialog in Child Documents settings (bug 11564).
 
+- Fix problems when pasting ZERO WIDTH NON-JOINER (bug 11790).
+
 
 * INTERNALS