diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2011-10-05 14:24:52 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2011-10-05 14:24:52 +0000 |
| commit | ff730380ed2e093a9cf06ae53a5d3dbba76e5f1e (patch) | |
| tree | 2b6720919c85db84a71dfb3b604e179c0f592fe2 /src/window.cc | |
| parent | 4ce349fa023998c83292eef4cc2f56a385e95721 (diff) | |
Window: empty_selections -> clear_selections
clear_selections also reset select_mode to Normal,
most editing operations now do a clear_selections.
Diffstat (limited to 'src/window.cc')
| -rw-r--r-- | src/window.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/window.cc b/src/window.cc index 34baaee6..21666dd2 100644 --- a/src/window.cc +++ b/src/window.cc @@ -222,13 +222,14 @@ WindowCoord Window::line_and_column_at(const BufferIterator& iterator) const return buffer_to_window(m_buffer.line_and_column_at(iterator)); } -void Window::empty_selections() +void Window::clear_selections() { check_invariant(); Selection sel = Selection(m_selections.back().last(), m_selections.back().last()); m_selections.clear(); m_selections.push_back(std::move(sel)); + m_select_mode = SelectMode::Normal; } void Window::select(const Selector& selector) |
