Gimp-Forum.net
Strong Undo/Redo - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: Strong Undo/Redo (/Thread-Strong-Undo-Redo)



Strong Undo/Redo - migf1 - 07-01-2020

Hey guys,

is there a comprehensive explanation of those 2 commands anywhere? Are they even still relevant?

Google didn't help me much, neither did the docs page. All I could find was a pretty vague "You can now undo/redo multiple steps at once, useful when experimenting", in some rather old Google results.


RE: Strong Undo/Redo - Ofnuts - 07-02-2020

Yes, they are. From the source code:

For undo:
Code:
/*
 * this function continues to undo as long as it only sees certain
 * undo types, in particular visibility changes.
 */

For redo:
Code:
/*
 * this function continues to redo as long as it only sees certain
 * undo types, in particular visibility changes.  Note that the
 * order of events is set up to make it exactly reverse
 * gimp_image_strong_undo().
 */


So it is mostly about skipping visibility changes in the undo stack.


RE: Strong Undo/Redo - migf1 - 07-02-2020

Oh nice! Thank you @ofnuts!