Our default for paste operation should preserve newlines.

https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg220061.html
This commit is contained in:
Pavel Sanda 2023-08-06 17:03:56 +02:00
parent de74acf92e
commit 05276c5bea

View 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;
}