From d484d9363e28adf11713724645f2784b254cae69 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 30 Nov 2018 16:51:55 +0100 Subject: [PATCH] Fix caret cmds --- qutebrowser/components/caretcommands.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qutebrowser/components/caretcommands.py b/qutebrowser/components/caretcommands.py index c359c27ac..98791e921 100644 --- a/qutebrowser/components/caretcommands.py +++ b/qutebrowser/components/caretcommands.py @@ -168,24 +168,28 @@ def move_to_end_of_prev_block(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_document(tab: apitypes.Tab): """Move the cursor or selection to the start of the document.""" tab.caret.move_to_start_of_document() @cmdutils.register(modes=[cmdutils.KeyMode.caret]) +@cmdutils.argument('tab', value=cmdutils.Value.cur_tab) def move_to_end_of_document(tab: apitypes.Tab): """Move the cursor or selection to the end of the document.""" tab.caret.move_to_end_of_document() @cmdutils.register(modes=[cmdutils.KeyMode.caret]) +@cmdutils.argument('tab', value=cmdutils.Value.cur_tab) def toggle_selection(tab: apitypes.Tab): """Toggle caret selection mode.""" tab.caret.toggle_selection() @cmdutils.register(modes=[cmdutils.KeyMode.caret]) +@cmdutils.argument('tab', value=cmdutils.Value.cur_tab) def drop_selection(tab: apitypes.Tab): """Drop selection and keep selection mode enabled.""" tab.caret.drop_selection()