Remove useless clipboard target information
This commit is contained in:
parent
0177dafbd0
commit
96146c55af
@ -816,11 +816,8 @@ class CommandDispatcher:
|
|||||||
window: Open in new window.
|
window: Open in new window.
|
||||||
"""
|
"""
|
||||||
force_search = False
|
force_search = False
|
||||||
if sel and utils.supports_selection():
|
if not utils.supports_selection():
|
||||||
target = "Primary selection"
|
|
||||||
else:
|
|
||||||
sel = False
|
sel = False
|
||||||
target = "Clipboard"
|
|
||||||
text = utils.get_clipboard(selection=sel)
|
text = utils.get_clipboard(selection=sel)
|
||||||
text_urls = [u for u in text.split('\n') if u.strip()]
|
text_urls = [u for u in text.split('\n') if u.strip()]
|
||||||
if (len(text_urls) > 1 and not urlutils.is_url(text_urls[0]) and
|
if (len(text_urls) > 1 and not urlutils.is_url(text_urls[0]) and
|
||||||
|
Loading…
Reference in New Issue
Block a user