Window: fix trailing spaces

This commit is contained in:
Maxime Coste 2011-12-05 14:29:36 +00:00
parent 23eafd4504
commit 711c05b81e

View File

@ -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));