check if browser is null, not if clickable_url is false
Hints don't make sense if there's no browser set, but checking if browser is null makes for cleaner code. Note this wasn't wrong, clickable_url will be set to false if browser is null.
This commit is contained in:
parent
a05fdcd4d1
commit
c1d65c416e
|
@ -726,7 +726,7 @@ gboolean key_press_cb(VteTerminal *vte, GdkEventKey *event, keybind_info *info)
|
||||||
exit_command_mode(vte, &info->select);
|
exit_command_mode(vte, &info->select);
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_x:
|
case GDK_KEY_x:
|
||||||
if (!info->config.clickable_url)
|
if (!info->config.browser)
|
||||||
break;
|
break;
|
||||||
find_urls(vte, &info->panel);
|
find_urls(vte, &info->panel);
|
||||||
gtk_widget_show(info->panel.da);
|
gtk_widget_show(info->panel.da);
|
||||||
|
|
Loading…
Reference in New Issue