Window: fix trailing spaces
This commit is contained in:
parent
23eafd4504
commit
711c05b81e
|
@ -207,10 +207,10 @@ void Window::clear_selections()
|
||||||
{
|
{
|
||||||
check_invariant();
|
check_invariant();
|
||||||
BufferIterator pos = m_selections.back().last();
|
BufferIterator pos = m_selections.back().last();
|
||||||
|
|
||||||
if (*pos == '\n' and not pos.is_begin() and *(pos-1) != '\n')
|
if (*pos == '\n' and not pos.is_begin() and *(pos-1) != '\n')
|
||||||
--pos;
|
--pos;
|
||||||
|
|
||||||
Selection sel = Selection(pos, pos);
|
Selection sel = Selection(pos, pos);
|
||||||
m_selections.clear();
|
m_selections.clear();
|
||||||
m_selections.push_back(std::move(sel));
|
m_selections.push_back(std::move(sel));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user