search: cancel selection and clear match stats when we don't match

This commit is contained in:
Daniel Eklöf 2019-08-27 19:58:44 +02:00
parent c3b5fa82be
commit 2895f8fa10
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -173,6 +173,11 @@ search_update(struct terminal *term)
start_col = term->cols - 1;
}
/* No match */
term->search.match = (struct coord){-1, -1};
term->search.match_len = 0;
selection_cancel(term);
}
void