1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-28 01:00:28 +03:00

IncrementalInserter: fix erase

This commit is contained in:
Maxime Coste 2011-11-21 22:18:00 +00:00
parent e34c5ef15f
commit a7309fbe87

View File

@ -437,8 +437,10 @@ void IncrementalInserter::insert_capture(size_t index)
void IncrementalInserter::erase()
{
move_cursor(DisplayCoord(0, -1));
for (auto& sel : m_window.m_selections)
sel = Selection(sel.first() - 1, sel.last() - 1);
m_window.erase_noundo();
m_window.scroll_to_keep_cursor_visible_ifn();
}
void IncrementalInserter::move_cursor(const DisplayCoord& offset)