]> git.lyx.org Git - features.git/commitdiff
Our default for paste operation should preserve newlines.
authorPavel Sanda <sanda@lyx.org>
Sun, 6 Aug 2023 15:03:56 +0000 (17:03 +0200)
committerPavel Sanda <sanda@lyx.org>
Sun, 6 Aug 2023 15:05:55 +0000 (17:05 +0200)
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg220061.html

src/Text.cpp

index 9dff2b37ab837f6fd5a3e0a67380237f97792a08..9e5bf5ff751b9cf8bdf0fdcfdd41e96091c73f3b 100644 (file)
@@ -4891,8 +4891,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                        if (theClipboard().isInternal())
                                pasteFromStack(cur, bv->buffer().errorList("Paste"), 0);
                        else if (theClipboard().hasTextContents()) {
-                               if (pasteClipboardText(cur, bv->buffer().errorList("Paste"),
-                                                      !cur.paragraph().parbreakIsNewline(),
+                               if (pasteClipboardText(cur, bv->buffer().errorList("Paste"), 0,
                                                           Clipboard::AnyTextType))
                                        tryGraphics = false;
                        }