fix Client::repeat_last_insert when no last insert

This commit is contained in:
Maxime Coste 2012-09-07 14:28:27 +02:00
parent 4e356a6312
commit 1e18dcba0f

View File

@ -372,6 +372,9 @@ void Client::insert(Editor& editor, IncrementalInserter::Mode mode)
void Client::repeat_last_insert(Editor& editor, Context& context)
{
if (m_last_insert.second.empty())
return;
std::vector<Key> keys;
swap(keys, m_last_insert.second);
// m_last_insert will be refilled by the new InsertMode