refactoring

This commit is contained in:
Jinhao
2019-03-08 06:11:21 +08:00
parent 0a3fb34e09
commit 2abae1dd68
11 changed files with 106 additions and 189 deletions

View File

@@ -671,7 +671,7 @@ namespace drawerbase {
void textbox::clear_undo()
{
get_drawer_trigger().editor()->clear_undo();
get_drawer_trigger().editor()->undo_clear();
}
void textbox::set_highlight(const std::string& name, const ::nana::color& fgcolor, const ::nana::color& bgcolor)
@@ -792,7 +792,7 @@ namespace drawerbase {
internal_scope_guard lock;
auto editor = get_drawer_trigger().editor();
if (editor)
editor->set_undo_queue_length(len);
editor->undo_max_steps(len);
}
std::size_t textbox::display_line_count() const noexcept