mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-09 08:21:01 -04:00
mouse scrolling and selection
This commit is contained in:
parent
a163484f25
commit
5fc55b8fbd
7 changed files with 147 additions and 66 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue