diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-02-23 08:28:43 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-26 08:15:46 +0000 |
| commit | 3c123425fbdf530c697096093268919e58221fb7 (patch) | |
| tree | 1bcac4aa3055c27a11f808089868ebd4948c925b | |
| parent | url-mode: dirty the “last cursor” cell before taking the snapshot (diff) | |
command: scrollback: don’t allow scrolling in URL mode
| -rw-r--r-- | commands.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |
