ime: call render_refresh_search() instead of render_refresh()

When scrollback search is active
This commit is contained in:
Daniel Eklöf 2020-12-06 12:18:17 +01:00
parent 194fbff883
commit fd42a0bc23
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

10
ime.c
View file

@ -117,7 +117,10 @@ done(void *data, struct zwp_text_input_v3 *zwp_text_input_v3,
/* 1. Delete existing pre-edit text */
if (term->ime.preedit.cells != NULL) {
term_ime_reset(term);
render_refresh(term);
if (term->is_searching)
render_refresh_search(term);
else
render_refresh(term);
}
/*
@ -285,7 +288,10 @@ done(void *data, struct zwp_text_input_v3 *zwp_text_input_v3,
term->ime.preedit.cursor.end = cell_end;
}
render_refresh(term);
if (term->is_searching)
render_refresh_search(term);
else
render_refresh(term);
}
ime_reset_preedit(seat);