aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-02-23 08:28:43 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-26 08:15:46 +0000
commit3c123425fbdf530c697096093268919e58221fb7 (patch)
tree1bcac4aa3055c27a11f808089868ebd4948c925b
parenturl-mode: dirty the “last cursor” cell before taking the snapshot (diff)
command: scrollback: don’t allow scrolling in URL mode
-rw-r--r--commands.c5
1 files changed, 5 insertions, 0 deletions
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;