[LyX/master] Remove a finishUndo() after a recordUndo()

Scott Kostyshak skostysh at lyx.org
Sun Feb 2 20:55:12 UTC 2020


commit 05f2494008ea38cc6e3aa02e89186401a1165145
Author: Scott Kostyshak <skostysh at lyx.org>
Date:   Sat Feb 1 12:32:30 2020 -0500

    Remove a finishUndo() after a recordUndo()
    
    finishUndo() is only helpful in the presence of undos of type INSERT
    or DELETE.
    
    See the following ML thread for details:
    
      https://www.mail-archive.com/search?l=mid&q=b721c098-c7ee-d12f-1cdf-067dda9aa5cf%40lyx.org
---
 src/Text3.cpp |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/Text3.cpp b/src/Text3.cpp
index 8643411..f5444e7 100644
--- a/src/Text3.cpp
+++ b/src/Text3.cpp
@@ -673,7 +673,6 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
 	case LFUN_PARAGRAPH_MOVE_DOWN: {
 		pit_type const pit = cur.pit();
 		cur.recordUndo(pit, pit + 1);
-		cur.finishUndo();
 		pars_.swap(pit, pit + 1);
 		needsUpdate = true;
 		cur.forceBufferUpdate();


More information about the lyx-cvs mailing list