mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-18 22:05:25 -05:00
selection: only disable selection when mouse drag/motion is on
This allows us to select text in e.g. man/less while still being able to use LESS=--MOUSE (i.e. enable scrolling with mouse).
This commit is contained in:
parent
42fdb3653d
commit
3ae210d4c5
1 changed files with 2 additions and 1 deletions
|
|
@ -20,7 +20,8 @@
|
|||
static bool
|
||||
selection_enabled(const struct terminal *term)
|
||||
{
|
||||
return term->mouse_tracking == MOUSE_NONE;
|
||||
return (term->mouse_tracking != MOUSE_DRAG &&
|
||||
term->mouse_tracking != MOUSE_MOTION);
|
||||
}
|
||||
|
||||
static char *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue