mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
ime: call render_refresh_search() instead of render_refresh()
When scrollback search is active
This commit is contained in:
parent
194fbff883
commit
fd42a0bc23
1 changed files with 8 additions and 2 deletions
10
ime.c
10
ime.c
|
|
@ -117,7 +117,10 @@ done(void *data, struct zwp_text_input_v3 *zwp_text_input_v3,
|
||||||
/* 1. Delete existing pre-edit text */
|
/* 1. Delete existing pre-edit text */
|
||||||
if (term->ime.preedit.cells != NULL) {
|
if (term->ime.preedit.cells != NULL) {
|
||||||
term_ime_reset(term);
|
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;
|
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);
|
ime_reset_preedit(seat);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue