]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.cpp
Update toolbar and properly reset focus when find widget is closed (#12396)
[lyx.git] / src / CutAndPaste.cpp
index 4a93966b1dab340b742a70067741a877c903dd10..f79d4ace7c7dc8533df839c169e3e0ab8cc35c8b 100644 (file)
@@ -1263,6 +1263,7 @@ bool pasteClipboardText(Cursor & cur, ErrorList & errorList, bool asParagraphs,
                string lyx = theClipboard().getAsLyX();
                if (!lyx.empty()) {
                        Buffer buffer(string(), false);
+                       buffer.setInternal(true);
                        buffer.setUnnamed(true);
                        if (buffer.readString(lyx)) {
                                cur.recordUndo();
@@ -1296,6 +1297,7 @@ bool pasteClipboardText(Cursor & cur, ErrorList & errorList, bool asParagraphs,
                        available = !text.empty();
                        if (available) {
                                Buffer buffer(string(), false);
+                               buffer.setInternal(true);
                                buffer.setUnnamed(true);
                                available = buffer.importString(names[i], text, errorList);
                                if (available)