mouse scrolling and selection

This commit is contained in:
Piotr Kocia 2025-06-14 01:59:02 +02:00
parent a163484f25
commit 5fc55b8fbd
7 changed files with 147 additions and 66 deletions

View file

@ -8,6 +8,7 @@
#include "selection.h"
#include "terminal.h"
#include "url-mode.h"
#include "vimode.h"
#include "util.h"
void
@ -47,6 +48,7 @@ cmd_scrollback_up(struct terminal *term, int rows)
selection_view_up(term, new_view);
term->grid->view = new_view;
vimode_view_up(term, 0);
if (rows < term->rows) {
term_damage_scroll(
@ -101,6 +103,7 @@ cmd_scrollback_down(struct terminal *term, int rows)
selection_view_down(term, new_view);
term->grid->view = new_view;
vimode_view_down(term, 0);
if (rows < term->rows) {
term_damage_scroll(