commit fe9573ee8b7e4786d0907a97623cca59d71a25d3
Author: Pavel Sanda <[email protected]>
Date: Mon Jun 24 22:29:23 2024 +0200
Let the middle button pasting respect newlines by default.
This makes it in sync with the new default for Edit > Paste operation.
https://www.mail-archive.com/[email protected]/msg222233.html
---
src/LyXAction.cpp | 8 ++++++--
src/Text.cpp | 2 +-
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/LyXAction.cpp b/src/LyXAction.cpp
index a5c7e7f451..95f705cc1f 100644
--- a/src/LyXAction.cpp
+++ b/src/LyXAction.cpp
@@ -3655,8 +3655,12 @@ void LyXAction::init()
/*!
* \var lyx::FuncCode lyx::LFUN_SELECTION_PASTE
* \li Action: Pastes the internal selection text in permanent selection.
- * \li Notion: Created in order to have middle mouse button pasting correct
(bound to
- command-alternatives selection-paste ; primary-selection-paste
paragraph).
+ * \li Notion: Created in order to have middle mouse button pasting correct.
The middle
+ button is bound to "command-alternatives selection-paste ;
primary-selection-paste".
+ selection-paste makes sure that if something is highlighted in
LyX window
+ it gets into selection buffer and pasted. If nothing is
highlighted, then
+ primary-selection-paste covers the cases of pasting from
selection
+ buffer from another apps (or from LyX once the highlight is
gone).
* \li Syntax: selection-paste
* \li Origin: lasgouttes, 14 Jan 2009
* \endvar
diff --git a/src/Text.cpp b/src/Text.cpp
index 8b50d9e9cd..6ffd5f894d 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -5279,7 +5279,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
bv->mouseSetCursor(cur);
lyx::dispatch(
FuncRequest(LFUN_COMMAND_ALTERNATIVES,
- "selection-paste ;
primary-selection-paste paragraph"));
+ "selection-paste ;
primary-selection-paste"));
}
cur.noScreenUpdate();
break;
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs