summaryrefslogtreecommitdiff
path: root/src/window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.cc')
-rw-r--r--src/window.cc3
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)