summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cc b/src/window.cc
index 39676066..76eabce2 100644
--- a/src/window.cc
+++ b/src/window.cc
@@ -369,7 +369,7 @@ void Window::scroll_to_keep_cursor_visible_ifn()
std::string Window::status_line() const
{
- BufferCoord cursor = m_buffer.line_and_column_at(m_selections.back().end());
+ BufferCoord cursor = m_buffer.line_and_column_at(m_selections.back().last());
std::ostringstream oss;
oss << m_buffer.name();
if (m_buffer.is_modified())