Fix bad merge
This commit is contained in:
parent
002e30a6ca
commit
34dd30e984
@ -196,6 +196,9 @@ def open_path(quteproc, path):
|
|||||||
if path.endswith(new_tab_suffix):
|
if path.endswith(new_tab_suffix):
|
||||||
path = path[:-len(new_tab_suffix)]
|
path = path[:-len(new_tab_suffix)]
|
||||||
new_tab = True
|
new_tab = True
|
||||||
|
elif path.endswith(new_bg_tab_suffix):
|
||||||
|
path = path[:-len(new_bg_tab_suffix)]
|
||||||
|
new_bg_tab = True
|
||||||
elif path.endswith(new_window_suffix):
|
elif path.endswith(new_window_suffix):
|
||||||
path = path[:-len(new_window_suffix)]
|
path = path[:-len(new_window_suffix)]
|
||||||
new_window = True
|
new_window = True
|
||||||
@ -208,20 +211,6 @@ def open_path(quteproc, path):
|
|||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
|
||||||
if path.endswith(new_tab_suffix):
|
|
||||||
path = path[:-len(new_tab_suffix)]
|
|
||||||
new_tab = True
|
|
||||||
elif path.endswith(new_bg_tab_suffix):
|
|
||||||
path = path[:-len(new_bg_tab_suffix)]
|
|
||||||
new_bg_tab = True
|
|
||||||
elif path.endswith(new_window_suffix):
|
|
||||||
path = path[:-len(new_window_suffix)]
|
|
||||||
new_window = True
|
|
||||||
|
|
||||||
if path.endswith(do_not_wait_suffix):
|
|
||||||
path = path[:-len(do_not_wait_suffix)]
|
|
||||||
wait = False
|
|
||||||
|
|
||||||
quteproc.open_path(path, new_tab=new_tab, new_bg_tab=new_bg_tab,
|
quteproc.open_path(path, new_tab=new_tab, new_bg_tab=new_bg_tab,
|
||||||
new_window=new_window, as_url=as_url, wait=wait)
|
new_window=new_window, as_url=as_url, wait=wait)
|
||||||
|
|
||||||
|
@ -481,7 +481,7 @@ class QuteProc(testprocess.Process):
|
|||||||
"""Open the given path on the local webserver in qutebrowser."""
|
"""Open the given path on the local webserver in qutebrowser."""
|
||||||
url = self.path_to_url(path, port=port, https=https)
|
url = self.path_to_url(path, port=port, https=https)
|
||||||
self.open_url(url, new_tab=new_tab, new_bg_tab=new_bg_tab,
|
self.open_url(url, new_tab=new_tab, new_bg_tab=new_bg_tab,
|
||||||
new_window=new_window, wait=wait)
|
new_window=new_window, as_url=as_url, wait=wait)
|
||||||
|
|
||||||
def open_url(self, url, *, new_tab=False, new_bg_tab=False,
|
def open_url(self, url, *, new_tab=False, new_bg_tab=False,
|
||||||
new_window=False, as_url=False, wait=True):
|
new_window=False, as_url=False, wait=True):
|
||||||
|
Loading…
Reference in New Issue
Block a user