diff --git a/src/window.hh b/src/window.hh index 85e871be..c16586ee 100644 --- a/src/window.hh +++ b/src/window.hh @@ -28,7 +28,7 @@ struct Selection void canonicalize() { if (m_end < m_begin) - std::swap(m_begin, m_end); + std::swap(++m_begin, ++m_end); } void offset(int offset)