search: search_cancel: reset cursor position

This commit is contained in:
Daniel Eklöf 2019-08-29 21:03:16 +02:00
parent 2ca7400cc6
commit 6003b87813
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -25,6 +25,7 @@ search_cancel_keep_selection(struct terminal *term)
term->search.buf = NULL;
term->search.len = 0;
term->search.sz = 0;
term->search.cursor = 0;
term->search.match = (struct coord){-1, -1};
term->search.match_len = 0;
term->is_searching = false;