diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-12-15 12:53:02 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-12-15 12:53:02 +0200 |
commit | 759f588c35e0d142a4325e8f550ce10d7fec68cc (patch) | |
tree | 0364a569b7ca12220ad54787b42f88d6c70b4705 | |
parent | 871273b374f75306a6c79c4ec067f2e4ce338172 (diff) |
Fix bug in process_path::clear_recall()
-rw-r--r-- | libbutl/process.ixx | 5 |
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 (); } } |