Don't omit ZERO WIDTH NON-JOINER on clipboard paste

Fixes #11790

(cherry picked from commit 7b3404fcab)
This commit is contained in:
Juergen Spitzmueller 2020-03-22 11:07:57 +01:00
parent c5cfca6ac6
commit cca83a320b
2 changed files with 4 additions and 2 deletions

View 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

View 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