]> git.lyx.org Git - lyx.git/commitdiff
Let the middle button pasting respect newlines by default.
authorPavel Sanda <sanda@lyx.org>
Mon, 24 Jun 2024 20:29:23 +0000 (22:29 +0200)
committerPavel Sanda <sanda@lyx.org>
Mon, 24 Jun 2024 20:39:20 +0000 (22:39 +0200)
This makes it in sync with the new default for Edit > Paste operation.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg222233.html

src/LyXAction.cpp
src/Text.cpp

index a367ea5cf8c408c0a05310f5c9cae8d5b9feeb01..f420f67f1924032215485c89992af0bea846bd93 100644 (file)
@@ -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
index e94cedbd8102afee8b7f3ab09dc9aad8956633ba..687144ce506cfb77f8cd258bea7ba2335dca9604 100644 (file)
@@ -5278,7 +5278,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;