From 3012f69c4da6885c4313b2489c85f450629c0246 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 22 Sep 2011 13:59:07 +0000 Subject: [PATCH] Selection: fix canonicalize --- src/window.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)