WIP: undo, backspace implementation, bug fixes

This commit is contained in:
Matthias Koefferlein
2025-08-19 23:12:43 +02:00
parent 57cd512bf9
commit d3d2eda54a
5 changed files with 137 additions and 65 deletions
+3 -1
View File
@@ -122,7 +122,9 @@ Manager::transaction (const std::string &description, transaction_id_t join_with
tl_assert (! m_replay);
if (! m_transactions.empty () && reinterpret_cast<transaction_id_t> (& m_transactions.back ()) == join_with) {
m_transactions.back ().second = description;
if (! description.empty ()) {
m_transactions.back ().second = description;
}
} else {
// delete all following transactions and add a new one
erase_transactions (m_current, m_transactions.end ());