diff --git a/qutebrowser/components/caretcommands.py b/qutebrowser/components/caretcommands.py index 98791e921..fe04f2483 100644 --- a/qutebrowser/components/caretcommands.py +++ b/qutebrowser/components/caretcommands.py @@ -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() diff --git a/qutebrowser/components/misccommands.py b/qutebrowser/components/misccommands.py index 9ecaa999c..2f9e2f5e5 100644 --- a/qutebrowser/components/misccommands.py +++ b/qutebrowser/components/misccommands.py @@ -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.