]> git.lyx.org Git - features.git/commitdiff
DEPM: do not strip explicitly leading spaces
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 15 Feb 2019 15:07:00 +0000 (16:07 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 18 Feb 2019 14:36:21 +0000 (15:36 +0100)
For the local version of DEPM, only what was around old cursor should change

For the global version, leading spaces are already handled.

src/Text2.cpp

index c7824bbc715a22f306959ac81bb5330dca1e1859..b5c341c384c375580aeb8c508e3fca595cd64482 100644 (file)
@@ -941,13 +941,6 @@ bool Text::deleteEmptyParagraphMechanism(Cursor & cur,
                return true;
        }
 
-       if (oldpar.stripLeadingSpaces(trackChanges)) {
-               need_anchor_change = true;
-               // We return true here because the Paragraph contents changed and
-               // we need a redraw before further action is processed.
-               return true;
-       }
-
        return false;
 }
 
@@ -1005,8 +998,6 @@ void Text::deleteEmptyParagraphMechanism(pit_type first, pit_type last, bool tra
                        --last;
                        continue;
                }
-
-               par.stripLeadingSpaces(trackChanges);
        }
 }