Fix unbound variable in hyperlink handling
This commit is contained in:
parent
1aebd83e45
commit
926c3540ff
@ -756,6 +756,7 @@ def handle_result(args: List[str], data: Dict[str, Any], target_window_id: int,
|
|||||||
cwd = data['cwd']
|
cwd = data['cwd']
|
||||||
program = None if program == 'default' else program
|
program = None if program == 'default' else program
|
||||||
if text_type == 'hyperlink':
|
if text_type == 'hyperlink':
|
||||||
|
w = boss.window_id_map.get(target_window_id)
|
||||||
for m in matches:
|
for m in matches:
|
||||||
if w is not None:
|
if w is not None:
|
||||||
w.open_url(m, hyperlink_id=1, cwd=cwd)
|
w.open_url(m, hyperlink_id=1, cwd=cwd)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user