commit 05276c5bea53a38df8a7fa1f1efb917f6e6fd587
Author: Pavel Sanda <sa...@lyx.org>
Date:   Sun Aug 6 17:03:56 2023 +0200

    Our default for paste operation should preserve newlines.
    
    https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg220061.html
---
 src/Text.cpp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/Text.cpp b/src/Text.cpp
index 9dff2b3..9e5bf5f 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -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;
                        }
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to