Disable URL highlight with URL launcher disabled

This commit is contained in:
Christian Duerr 2019-03-28 07:02:44 +00:00 committed by GitHub
parent 77536e8fac
commit 16153e615d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -441,6 +441,7 @@ impl<'a, A: ActionContext + 'a> Processor<'a, A> {
// Only show URLs as launchable when all required modifiers are pressed
let url = if self.mouse_config.url.modifiers.relaxed_eq(modifiers)
&& (!self.ctx.terminal().mode().intersects(mouse_mode) || modifiers.shift)
&& self.mouse_config.url.launcher.is_some()
{
self.ctx.terminal().url_search(point.into())
} else {