commit 7b3404fcab0e2530964444261d411814c03eaeba
Author: Juergen Spitzmueller <[email protected]>
Date:   Sun Mar 22 11:07:57 2020 +0100

    Don't omit ZERO WIDTH NON-JOINER on clipboard paste
    
    Fixes #11790
---
 src/Text.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Text.cpp b/src/Text.cpp
index 1087330..25ce684 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
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to