mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
commands: scrollback: don't scrollback if mouse tracking is enabled
This commit is contained in:
parent
6aa14ccdfc
commit
caee8db89a
1 changed files with 3 additions and 0 deletions
|
|
@ -16,6 +16,9 @@ cmd_scrollback_up(struct terminal *term, int rows)
|
||||||
if (term->grid == &term->alt)
|
if (term->grid == &term->alt)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (term->mouse_tracking != MOUSE_NONE)
|
||||||
|
return;
|
||||||
|
|
||||||
rows = min(rows, term->rows);
|
rows = min(rows, term->rows);
|
||||||
assert(term->grid->offset >= 0);
|
assert(term->grid->offset >= 0);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue