From 711c05b81e89190dcc448faf5878967f03982077 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 5 Dec 2011 14:29:36 +0000 Subject: [PATCH] Window: fix trailing spaces --- src/window.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/window.cc b/src/window.cc index 469d435b..498ea693 100644 --- a/src/window.cc +++ b/src/window.cc @@ -207,10 +207,10 @@ void Window::clear_selections() { check_invariant(); BufferIterator pos = m_selections.back().last(); - + if (*pos == '\n' and not pos.is_begin() and *(pos-1) != '\n') --pos; - + Selection sel = Selection(pos, pos); m_selections.clear(); m_selections.push_back(std::move(sel));