summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-07-25 14:29:51 +0200
committerMaxime Coste <frrrwww@gmail.com>2012-07-25 14:29:51 +0200
commit0e9b0c8b3aaddbad2f2e7d78605ad19ae64aeb2a (patch)
tree5a14a47e50162381f3658b91741075bddfa81d72 /src
parentaf203b2b94503c3f4c184b844dc725814cd6251c (diff)
insert_char: remove 'ctrl-r %' handling, already provided by dynamic register
Diffstat (limited to 'src')
-rw-r--r--src/main.cc11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/main.cc b/src/main.cc
index d1bb6359..ccb51f37 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -62,16 +62,7 @@ bool insert_char(IncrementalInserter& inserter, const Key& key)
Key next_key = get_key();
last_insert_sequence.keys.push_back(next_key);
if (next_key.modifiers == Key::Modifiers::None)
- {
- switch (next_key.key)
- {
- case '%':
- inserter.insert(inserter.buffer().name());
- break;
- default:
- inserter.insert(RegisterManager::instance()[next_key.key]);
- }
- }
+ inserter.insert(RegisterManager::instance()[next_key.key]);
break;
}
case 'm':