From: Scott Kostyshak Date: Fri, 13 Mar 2020 01:50:54 +0000 (-0400) Subject: Fix correction with continuous spellcheck X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2193899978490aa985e71c79c60498a887460934;p=features.git Fix correction with continuous spellcheck This commit amends 8d26ae57ba66b4518985cf3430de2dcf37096568. --- diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp index 0e620aab8a..2a08444728 100644 --- a/src/CutAndPaste.cpp +++ b/src/CutAndPaste.cpp @@ -1364,8 +1364,10 @@ void replaceSelectionWithString(Cursor & cur, docstring const & str) // Insert the new string pos_type pos = cur.selEnd().pos(); Paragraph & par = cur.selEnd().paragraph(); - for (auto const & c : str) + for (auto const & c : str) { par.insertChar(pos, c, font, cur.buffer()->params().track_changes); + ++pos; + } // Cut the selection cutSelection(cur, false);