mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05: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++;
|
||||
}
|
||||
|
||||
if (seat->ime.preedit.pending.cursor_end >= byte_len)
|
||||
cell_end = cell_count;
|
||||
|
||||
/* Bounded by number of screen columns */
|
||||
cell_begin = min(max(cell_begin, 0), cell_count - 1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue