input: regression: special keys don’t reset view and cancel selection

This fixes an issue where e.g. holding down ctrl would cancel the
selection, thus making it impossible to copy text to the clipboard.
This commit is contained in:
Daniel Eklöf 2021-11-28 16:48:30 +01:00
parent 4334259c70
commit a55a3daae7
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1594,8 +1594,10 @@ key_press_release(struct seat *seat, struct terminal *term, uint32_t serial,
if (utf8 != buf)
free(utf8);
term_reset_view(term);
selection_cancel(term);
if (count > 0) {
term_reset_view(term);
selection_cancel(term);
}
maybe_repeat:
clock_gettime(