input: reset view when pasting from primary

We’re already doing this for keyboard input, and regular clipboard
pastes.
This commit is contained in:
Daniel Eklöf 2022-01-11 20:26:49 +01:00
parent e37edba387
commit 29c31054a1
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 3 additions and 0 deletions

View file

@ -80,6 +80,8 @@
* Rendering of CSD borders when `csd.border-width > 0` and desktop
scaling has been enabled.
* 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

View file

@ -145,6 +145,7 @@ execute_binding(struct seat *seat, struct terminal *term,
case BIND_ACTION_PRIMARY_PASTE:
selection_from_primary(seat, term);
term_reset_view(term);
return true;
case BIND_ACTION_SEARCH_START: