Merge branch 'master' of https://github.com/LadyClaire/qutebrowser into LadyClaire-master

This commit is contained in:
Florian Bruhin 2016-07-29 09:04:52 +02:00
commit 943cd6ff48
2 changed files with 14 additions and 6 deletions

View File

@ -248,11 +248,14 @@ class CommandDispatcher:
raise cmdexc.CommandError("No URL given, but -t/-b/-w is not " raise cmdexc.CommandError("No URL given, but -t/-b/-w is not "
"set!") "set!")
else: else:
try:
url = objreg.get('quickmark-manager').get(url)
except urlmarks.Error:
try: try:
url = urlutils.fuzzy_url(url) url = urlutils.fuzzy_url(url)
except urlutils.InvalidUrlError as e: except urlutils.InvalidUrlError as e:
# We don't use cmdexc.CommandError here as this can be called # We don't use cmdexc.CommandError here as this can be
# async from edit_url # called async from edit_url
message.error(self._win_id, str(e)) message.error(self._win_id, str(e))
return return
if tab or bg or window: if tab or bg or window:

View File

@ -103,3 +103,8 @@ Feature: Opening pages
history: history:
- active: true - active: true
url: http://localhost:*/data/numbers/7.txt url: http://localhost:*/data/numbers/7.txt
Scenario: Opening a quickmark
When I run :quickmark-add http://localhost:(port)/data/numbers/8.txt quickmarktest
And I run :open quickmarktest
Then data/numbers/8.txt should be loaded