mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-01 07:15:32 -04:00
input: reset view when pasting from primary
We’re already doing this for keyboard input, and regular clipboard pastes.
This commit is contained in:
parent
e37edba387
commit
29c31054a1
2 changed files with 3 additions and 0 deletions
|
|
@ -80,6 +80,8 @@
|
||||||
* Rendering of CSD borders when `csd.border-width > 0` and desktop
|
* Rendering of CSD borders when `csd.border-width > 0` and desktop
|
||||||
scaling has been enabled.
|
scaling has been enabled.
|
||||||
* Failure to launch when `exec(3)’:ed with an empty argv.
|
* Failure to launch when `exec(3)’:ed with an empty argv.
|
||||||
|
* Pasting from the primary clipboard (mouse middle clicking) did not
|
||||||
|
reset the scrollback view to the bottom.
|
||||||
|
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
|
||||||
1
input.c
1
input.c
|
|
@ -145,6 +145,7 @@ execute_binding(struct seat *seat, struct terminal *term,
|
||||||
|
|
||||||
case BIND_ACTION_PRIMARY_PASTE:
|
case BIND_ACTION_PRIMARY_PASTE:
|
||||||
selection_from_primary(seat, term);
|
selection_from_primary(seat, term);
|
||||||
|
term_reset_view(term);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case BIND_ACTION_SEARCH_START:
|
case BIND_ACTION_SEARCH_START:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue