aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbutl/process.ixx5
1 files changed, 5 insertions, 0 deletions
diff --git a/libbutl/process.ixx b/libbutl/process.ixx
index c32bf2a..7676ce3 100644
--- a/libbutl/process.ixx
+++ b/libbutl/process.ixx
@@ -95,8 +95,13 @@ namespace butl
{
if (!effect.empty ())
{
+ bool init (initial != recall.string ().c_str ());
+
recall = std::move (effect);
effect.clear ();
+
+ if (!init)
+ initial = recall.string ().c_str ();
}
}