diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-07-29 20:18:23 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-07-29 20:53:30 +0200 |
commit | f42cc99595d97ce14ac6a8c530b13f176ae2faee (patch) | |
tree | bf92272944fc21b51ff9368da7fde0868aa34319 /qutebrowser/mainwindow/tabbedbrowser.py | |
parent | 63b44c17ac662d194dbf9d5c863593dd10b39df5 (diff) | |
download | qutebrowser-f42cc99595d97ce14ac6a8c530b13f176ae2faee.tar.gz qutebrowser-f42cc99595d97ce14ac6a8c530b13f176ae2faee.zip |
Add completion for :undo
See #32
Diffstat (limited to 'qutebrowser/mainwindow/tabbedbrowser.py')
-rw-r--r-- | qutebrowser/mainwindow/tabbedbrowser.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qutebrowser/mainwindow/tabbedbrowser.py b/qutebrowser/mainwindow/tabbedbrowser.py index 39df067b6..b60de50dc 100644 --- a/qutebrowser/mainwindow/tabbedbrowser.py +++ b/qutebrowser/mainwindow/tabbedbrowser.py @@ -494,7 +494,7 @@ class TabbedBrowser(QWidget): tab.deleteLater() - def undo(self, count=1): + def undo(self, depth=1): """Undo removing of a tab or tabs.""" # Remove unused tab which may be created after the last tab is closed last_close = config.val.tabs.last_close @@ -517,8 +517,8 @@ class TabbedBrowser(QWidget): use_current_tab = (only_one_tab_open and no_history and last_close_url_used) - entries = self.undo_stack[-count] - del self.undo_stack[-count] + entries = self.undo_stack[-depth] + del self.undo_stack[-depth] for entry in reversed(entries): if use_current_tab: |