mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-25 06:46:36 -04: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 "render.h"
|
||||||
#include "selection.h"
|
#include "selection.h"
|
||||||
#include "terminal.h"
|
#include "terminal.h"
|
||||||
|
#include "url-mode.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
@ -14,6 +15,8 @@ cmd_scrollback_up(struct terminal *term, int rows)
|
||||||
{
|
{
|
||||||
if (term->grid == &term->alt)
|
if (term->grid == &term->alt)
|
||||||
return;
|
return;
|
||||||
|
if (urls_mode_is_active(term))
|
||||||
|
return;
|
||||||
|
|
||||||
if (term->mouse_tracking != MOUSE_NONE)
|
if (term->mouse_tracking != MOUSE_NONE)
|
||||||
return;
|
return;
|
||||||
|
|
@ -92,6 +95,8 @@ cmd_scrollback_down(struct terminal *term, int rows)
|
||||||
{
|
{
|
||||||
if (term->grid == &term->alt)
|
if (term->grid == &term->alt)
|
||||||
return;
|
return;
|
||||||
|
if (urls_mode_is_active(term))
|
||||||
|
return;
|
||||||
|
|
||||||
if (term->mouse_tracking != MOUSE_NONE)
|
if (term->mouse_tracking != MOUSE_NONE)
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue