For some reason I can't reach the lyx.org is it down?

Anyway, I'll just re-post my patch here since it might have gone unnoticed. I know that the cure I suggest isn't perfect, but as far as I can see it works. The problem seems quite bad so it seems much better having this patch rather than leaving it as it is.

The discussion was here: http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg197035.html

Daniel
From 967d723b5915e52dfbf5a230b8b9c440af1f01a2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Ram=C3=B6ller?= <d....@web.de>
Date: Sat, 15 Oct 2016 00:35:17 +0200
Subject: [PATCH] Fixes that cutting selection from beginning of paragrph
 removes space after selection.

---
 src/CutAndPaste.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp
index 4ec9811..888da0c 100644
--- a/src/CutAndPaste.cpp
+++ b/src/CutAndPaste.cpp
@@ -888,9 +888,9 @@ void cutSelection(Cursor & cur, bool doclear, bool realcut)
                cur.pit() = endpit;
 
                // sometimes necessary
-               if (doclear
+               /*if (doclear
                        && 
text->paragraphs()[begpit].stripLeadingSpaces(bp.track_changes))
-                       cur.fixIfBroken();
+                       cur.fixIfBroken();*/
 
                // need a valid cursor. (Lgb)
                cur.clearSelection();
-- 
2.9.0.windows.1

Reply via email to