mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-02 07:15:31 -04:00
ime: set cursor end correctly when it ends *after* the pre-edit string
This commit is contained in:
parent
cc76f91c43
commit
552b9884b9
1 changed files with 3 additions and 0 deletions
3
ime.c
3
ime.c
|
|
@ -273,6 +273,9 @@ done(void *data, struct zwp_text_input_v3 *zwp_text_input_v3,
|
||||||
wc_idx++;
|
wc_idx++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (seat->ime.preedit.pending.cursor_end >= byte_len)
|
||||||
|
cell_end = cell_count;
|
||||||
|
|
||||||
/* Bounded by number of screen columns */
|
/* Bounded by number of screen columns */
|
||||||
cell_begin = min(max(cell_begin, 0), cell_count - 1);
|
cell_begin = min(max(cell_begin, 0), cell_count - 1);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue