Buffer: add reset_undo_data method
This commit is contained in:
parent
e5c46d7c45
commit
c7fc2a9317
|
@ -196,6 +196,13 @@ bool Buffer::redo()
|
|||
return true;
|
||||
}
|
||||
|
||||
void Buffer::reset_undo_data()
|
||||
{
|
||||
m_history.clear();
|
||||
m_history_cursor = m_history.end();
|
||||
m_current_undo_group.clear();
|
||||
}
|
||||
|
||||
void Buffer::check_invariant() const
|
||||
{
|
||||
BufferSize start = 0;
|
||||
|
|
|
@ -137,6 +137,7 @@ public:
|
|||
void end_undo_group();
|
||||
bool undo();
|
||||
bool redo();
|
||||
void reset_undo_data();
|
||||
|
||||
String string(const BufferIterator& begin,
|
||||
const BufferIterator& end) const;
|
||||
|
|
Loading…
Reference in New Issue
Block a user