Merge pull request #4206 from airodactyl/feature/support-multiple-words-tab-give-take

Support multiple words for :tab-take without quotes
This commit is contained in:
Jay Kamat 2018-09-11 18:37:21 -07:00 committed by GitHub
commit 59af280f5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -55,6 +55,11 @@ Changed
- Make qute:// pages work properly on Qt 5.11.2
- The `content.autoplay` setting now supports URL patterns on Qt >= 5.11.
Fixed
~~~~~
- Error when passing a substring with spaces to `:tab-take`.
Removed
~~~~~~~

View File

@ -485,7 +485,8 @@ class CommandDispatcher:
new_tabbed_browser.widget.set_tab_pinned(newtab, curtab.data.pinned)
return newtab
@cmdutils.register(instance='command-dispatcher', scope='window')
@cmdutils.register(instance='command-dispatcher', scope='window',
maxsplit=0)
@cmdutils.argument('index', completion=miscmodels.other_buffer)
def tab_take(self, index):
"""Take a tab from another window.