[LyX/master] Fix bug #11917. Patch from Daniel.
Richard Kimberly Heck
rikiheck at lyx.org
Sun Nov 27 17:29:17 UTC 2022
commit 2c7f229b06105af6fe9dd3da50661441c79d7583
Author: Richard Kimberly Heck <rikiheck at lyx.org>
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);
More information about the lyx-cvs
mailing list