]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.cpp
Typo.
[lyx.git] / src / CutAndPaste.cpp
index ac634a6d2dfc96a5dca1b29fdf35636cfc79e6f0..761a107b6ad8be1b83054f49b6fc91b8f384457a 100644 (file)
@@ -140,7 +140,7 @@ pasteSelectionHelper(Cursor & cur, ParagraphList const & parlist,
                        if (forceEmptyLayout || parLayout == defaultLayout)
                                par->setLayout(emptyLayout);
                }
-       } else { // check if we need to reset form empty layout
+       } else { // check if we need to reset from empty layout
                Layout const & defaultLayout = newDocClass->defaultLayout();
                Layout const & emptyLayout = newDocClass->emptyLayout();
                ParagraphList::iterator const end = insertion.end();
@@ -621,6 +621,9 @@ void cutSelection(Cursor & cur, bool doclear, bool realcut)
                                cur.selectionAsString(true));
                }
 
+               if (begpit != endpit)
+                       cur.updateFlags(Update::Force | Update::FitCursor);
+
                boost::tie(endpit, endpos) =
                        eraseSelectionHelper(bp,
                                text->paragraphs(),