Extend the tester to compile sources
This commit is contained in:
@ -9,8 +9,8 @@ namespace elna
|
||||
|
||||
void editor_history::push(const std::string& entry)
|
||||
{
|
||||
commands.push_front(entry);
|
||||
current_pointer = commands.cbegin();
|
||||
commands.push_back(entry);
|
||||
current_pointer = commands.cend();
|
||||
}
|
||||
|
||||
void editor_history::clear()
|
||||
@ -46,4 +46,9 @@ namespace elna
|
||||
{
|
||||
return this->commands.cend();
|
||||
}
|
||||
|
||||
editor_history::const_iterator editor_history::current() const noexcept
|
||||
{
|
||||
return this->current_pointer;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user