Fix wrong/missing argument annotations

This commit is contained in:
Florian Bruhin 2018-12-03 08:45:13 +01:00
parent 285db344b3
commit a47ee08a84
2 changed files with 3 additions and 1 deletions

View File

@ -108,12 +108,14 @@ def move_to_prev_word(tab: apitypes.Tab, count: int = 1):
@cmdutils.register(modes=[cmdutils.KeyMode.caret])
@cmdutils.argument('tab', value=cmdutils.Value.cur_tab)
def move_to_start_of_line(tab: apitypes.Tab):
"""Move the cursor or selection to the start of the line."""
tab.caret.move_to_start_of_line()
@cmdutils.register(modes=[cmdutils.KeyMode.caret])
@cmdutils.argument('tab', value=cmdutils.Value.cur_tab)
def move_to_end_of_line(tab: apitypes.Tab):
"""Move the cursor or selection to the end of line."""
tab.caret.move_to_end_of_line()

View File

@ -226,7 +226,7 @@ def debug_webaction(tab, action, count=1):
@cmdutils.register()
@cmdutils.argument('tab', value=cmdutils.Value.cur_tab)
@cmdutils.argument('tab', value=cmdutils.Value.count_tab)
def tab_mute(tab):
"""Mute/Unmute the current/[count]th tab.