From: Scott Kostyshak Date: Sat, 1 Feb 2020 17:32:30 +0000 (-0500) Subject: Remove a finishUndo() after a recordUndo() X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=886815cd3e0d83219f240e084c42b7d1a3bad0aa;p=features.git 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 --- diff --git a/src/Text3.cpp b/src/Text3.cpp index 8643411da1..f5444e7baa 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();