mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-24 01:40:12 -05:00
command: scrollback: don’t allow scrolling in URL mode
This commit is contained in:
parent
bc71e06d5f
commit
3c123425fb
1 changed files with 5 additions and 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue