fix Client::repeat_last_insert when no last insert
This commit is contained in:
parent
4e356a6312
commit
1e18dcba0f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user