diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-02-07 23:41:10 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-02-07 23:41:10 +0000 |
| commit | 04a37d8895a5e2e1a59e71d447c07e9aefcee64d (patch) | |
| tree | 0126c5431e5ccfeb03fa1a96ec1c3e26c2e3737d /src/window.cc | |
| parent | 333e87dedd453673485faf8d0cbedb02502453fe (diff) | |
Editor refactoring, merge undo and batch management
Diffstat (limited to 'src/window.cc')
| -rw-r--r-- | src/window.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.cc b/src/window.cc index e546f655..49eb6c0b 100644 --- a/src/window.cc +++ b/src/window.cc @@ -154,12 +154,12 @@ std::string Window::status_line() const oss << " [+]"; oss << " -- " << cursor.line+1 << "," << cursor.column+1 << " -- " << selections().size() << " sel -- "; - if (is_in_batch()) + if (is_editing()) oss << "[Insert]"; return oss.str(); } -void Window::on_end_batch() +void Window::on_incremental_insertion_end() { push_selections(); hooks_manager().run_hook("InsertEnd", "", Context(*this)); |
