From 3b27bf9fb7b968025b9d348b311679c6111d3968 Mon Sep 17 00:00:00 2001 From: mohite-abhi Date: Sun, 23 Jan 2022 21:49:33 +0530 Subject: Fixed linter errors --- qutebrowser/completion/models/miscmodels.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qutebrowser/completion/models/miscmodels.py b/qutebrowser/completion/models/miscmodels.py index 34948a452..f461a0fbb 100644 --- a/qutebrowser/completion/models/miscmodels.py +++ b/qutebrowser/completion/models/miscmodels.py @@ -103,7 +103,7 @@ def session(*, info=None): return model -def _tabs(*, win_id_filter=lambda _win_id: True, add_win_id=True, current_win_id): +def _tabs(*, win_id_filter=lambda _win_id: True, add_win_id=True, current_win_id=0): """Helper to get the completion model for tabs/other_tabs. Args: @@ -114,7 +114,6 @@ def _tabs(*, win_id_filter=lambda _win_id: True, add_win_id=True, current_win_id """ def delete_tab(data): """Close the selected tab.""" - win_id = current_win_id tab_index = data[0].split('/')[-1] # data[0] can be 'tabInd' or 'winID/tabInd' -- cgit v1.2.3-54-g00ecf