Fix long lines
This commit is contained in:
parent
33ff0ba715
commit
87899cb6b3
@ -78,10 +78,14 @@ def init(win_id, parent):
|
||||
warn=False),
|
||||
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.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(
|
||||
|
@ -306,7 +306,8 @@ class RegisterKeyParser(keyparser.BaseKeyParser):
|
||||
elif self._mode == usertypes.KeyMode.run_macro:
|
||||
utilcmds.run_macro(self._win_id, key)
|
||||
else:
|
||||
raise ValueError("{} is not a valid register key".format(self._mode))
|
||||
raise ValueError(
|
||||
"{} is not a valid register key".format(self._mode))
|
||||
|
||||
self.request_leave.emit(self._mode, "valid register key")
|
||||
|
||||
|
@ -234,7 +234,8 @@ def repeat_command(win_id, count=None):
|
||||
commandrunner.run(cmd[0], count if count is not None else cmd[1])
|
||||
|
||||
|
||||
@cmdutils.register(instance='mode-manager', name='record-macro', scope='window')
|
||||
@cmdutils.register(instance='mode-manager', name='record-macro',
|
||||
scope='window')
|
||||
@cmdutils.argument('register')
|
||||
def record_macro_command(self, register=None):
|
||||
"""Start or stop recording a macro.
|
||||
|
Loading…
Reference in New Issue
Block a user