Fix lint
This commit is contained in:
parent
0cd73af691
commit
b789e436b8
@ -65,23 +65,30 @@ def init(win_id, parent):
|
||||
modeman = ModeManager(win_id, parent)
|
||||
objreg.register('mode-manager', modeman, scope='window', window=win_id)
|
||||
keyparsers = {
|
||||
KM.normal: modeparsers.NormalKeyParser(win_id, modeman),
|
||||
KM.hint: modeparsers.HintKeyParser(win_id, modeman),
|
||||
KM.insert: modeparsers.PassthroughKeyParser(win_id, 'insert', modeman),
|
||||
KM.passthrough: modeparsers.PassthroughKeyParser(win_id, 'passthrough',
|
||||
modeman),
|
||||
KM.command: modeparsers.PassthroughKeyParser(win_id, 'command', modeman),
|
||||
KM.prompt: modeparsers.PassthroughKeyParser(win_id, 'prompt', modeman),
|
||||
KM.yesno: modeparsers.PromptKeyParser(win_id, modeman),
|
||||
KM.caret: modeparsers.CaretKeyParser(win_id, modeman),
|
||||
KM.set_mark: modeparsers.RegisterKeyParser(win_id, KM.set_mark,
|
||||
modeman),
|
||||
KM.jump_mark: modeparsers.RegisterKeyParser(win_id, KM.jump_mark,
|
||||
modeman),
|
||||
KM.record_macro: modeparsers.RegisterKeyParser(win_id, KM.record_macro,
|
||||
modeman),
|
||||
KM.run_macro: modeparsers.RegisterKeyParser(win_id, KM.run_macro,
|
||||
modeman),
|
||||
KM.normal:
|
||||
modeparsers.NormalKeyParser(win_id, modeman),
|
||||
KM.hint:
|
||||
modeparsers.HintKeyParser(win_id, modeman),
|
||||
KM.insert:
|
||||
modeparsers.PassthroughKeyParser(win_id, 'insert', modeman),
|
||||
KM.passthrough:
|
||||
modeparsers.PassthroughKeyParser(win_id, 'passthrough', modeman),
|
||||
KM.command:
|
||||
modeparsers.PassthroughKeyParser(win_id, 'command', modeman),
|
||||
KM.prompt:
|
||||
modeparsers.PassthroughKeyParser(win_id, 'prompt', modeman),
|
||||
KM.yesno:
|
||||
modeparsers.PromptKeyParser(win_id, modeman),
|
||||
KM.caret:
|
||||
modeparsers.CaretKeyParser(win_id, modeman),
|
||||
KM.set_mark:
|
||||
modeparsers.RegisterKeyParser(win_id, KM.set_mark, modeman),
|
||||
KM.jump_mark:
|
||||
modeparsers.RegisterKeyParser(win_id, KM.jump_mark, modeman),
|
||||
KM.record_macro:
|
||||
modeparsers.RegisterKeyParser(win_id, KM.record_macro, modeman),
|
||||
KM.run_macro:
|
||||
modeparsers.RegisterKeyParser(win_id, KM.run_macro, modeman),
|
||||
}
|
||||
objreg.register('keyparsers', keyparsers, scope='window', window=win_id)
|
||||
modeman.destroyed.connect(
|
||||
|
Loading…
Reference in New Issue
Block a user