insert_char: remove 'ctrl-r %' handling, already provided by dynamic register
This commit is contained in:
parent
af203b2b94
commit
0e9b0c8b3a
11
src/main.cc
11
src/main.cc
|
@ -62,16 +62,7 @@ bool insert_char(IncrementalInserter& inserter, const Key& key)
|
||||||
Key next_key = get_key();
|
Key next_key = get_key();
|
||||||
last_insert_sequence.keys.push_back(next_key);
|
last_insert_sequence.keys.push_back(next_key);
|
||||||
if (next_key.modifiers == Key::Modifiers::None)
|
if (next_key.modifiers == Key::Modifiers::None)
|
||||||
{
|
inserter.insert(RegisterManager::instance()[next_key.key]);
|
||||||
switch (next_key.key)
|
|
||||||
{
|
|
||||||
case '%':
|
|
||||||
inserter.insert(inserter.buffer().name());
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
inserter.insert(RegisterManager::instance()[next_key.key]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'm':
|
case 'm':
|
||||||
|
|
Loading…
Reference in New Issue
Block a user