commit 2c7f229b06105af6fe9dd3da50661441c79d7583
Author: Richard Kimberly Heck <[email protected]>
Date:   Sun Nov 27 13:24:13 2022 -0500

    Fix bug #11917. Patch from Daniel.
---
 src/CutAndPaste.cpp |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp
index 5a6130d..b5147ae 100644
--- a/src/CutAndPaste.cpp
+++ b/src/CutAndPaste.cpp
@@ -554,10 +554,7 @@ PitPosPair eraseSelectionHelper(BufferParams const & 
params,
                pars[pit].eraseChars(left, right, params.track_changes);
 
                // Separate handling of paragraph break:
-               if (merge && pit != endpit &&
-                   (pit + 1 != endpit
-                    || pars[pit].hasSameLayout(pars[endpit])
-                    || pars[endpit].size() == endpos)) {
+        if (merge && pit != endpit) {
                        if (pit + 1 == endpit)
                                endpos += pars[pit].size();
                        mergeParagraph(params, pars, pit);
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to