s/<normal>/<leave>/

This commit is contained in:
Florian Bruhin 2014-04-24 21:19:29 +02:00
parent d2dc0b7ac5
commit 0c15517352
2 changed files with 5 additions and 5 deletions

View File

@ -84,7 +84,7 @@ SECTION_DESC = {
"supported in this mode.\n"
"In addition to the normal commands, the following special commands "
"are defined:\n"
" <normal>: Switch back to normal mode."),
" <leave>: Leave the insert mode."),
'aliases': (
"Aliases for commands.\n"
"By default, no aliases are defined. Example which adds a new command "
@ -428,9 +428,9 @@ DATA = OrderedDict([
)),
('keybind.insert', sect.ValueList(
types.KeyBindingName(), types.KeyBinding(['<normal>']),
('<Escape>', '<normal>'),
('<Ctrl-C>', '<normal>'),
types.KeyBindingName(), types.KeyBinding(['<leave>']),
('<Escape>', '<leave>'),
('<Ctrl-C>', '<leave>'),
)),
('aliases', sect.ValueList(

View File

@ -33,5 +33,5 @@ class InsertKeyParser(KeyParser):
def execute(self, cmdstr, count=None):
"""Handle a completed keychain."""
if cmdstr == '<normal>':
if cmdstr == '<leave>':
modes.leave("insert")