From 3c123425fbdf530c697096093268919e58221fb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 23 Feb 2021 09:28:43 +0100 Subject: [PATCH] =?UTF-8?q?command:=20scrollback:=20don=E2=80=99t=20allow?= =?UTF-8?q?=20scrolling=20in=20URL=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/commands.c b/commands.c index 01ad4e1e..e7dafdfc 100644 --- a/commands.c +++ b/commands.c @@ -7,6 +7,7 @@ #include "render.h" #include "selection.h" #include "terminal.h" +#include "url-mode.h" #include "util.h" void @@ -14,6 +15,8 @@ cmd_scrollback_up(struct terminal *term, int rows) { if (term->grid == &term->alt) return; + if (urls_mode_is_active(term)) + return; if (term->mouse_tracking != MOUSE_NONE) return; @@ -92,6 +95,8 @@ cmd_scrollback_down(struct terminal *term, int rows) { if (term->grid == &term->alt) return; + if (urls_mode_is_active(term)) + return; if (term->mouse_tracking != MOUSE_NONE) return;