From: Richard Kimberly Heck Date: Tue, 2 Feb 2021 22:23:00 +0000 (-0500) Subject: Fix #12104 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b6c089afa4;p=features.git Fix #12104 --- diff --git a/src/Text.cpp b/src/Text.cpp index 19b3af5b28..b00f10de0c 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -895,11 +895,11 @@ void Text::insertStringAsLines(Cursor & cur, docstring const & str, space_inserted = true; } } else if (specialchars.find(ch) != specialchars.end()) { - par.insertInset(pos, new InsetSpecialChar(specialchars.find(ch)->second), + if (par.insertInset(pos, new InsetSpecialChar(specialchars.find(ch)->second), font, bparams.track_changes ? Change(Change::INSERTED) - : Change(Change::UNCHANGED)); - ++pos; + : Change(Change::UNCHANGED))) + ++pos; space_inserted = false; } else if (!isPrintable(ch)) { // Ignore (other) unprintables