mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
ime: use correct index when calculating number of *cells* to advance
This commit is contained in:
parent
83d3ae10ae
commit
cc76f91c43
1 changed files with 1 additions and 1 deletions
2
ime.c
2
ime.c
|
|
@ -269,7 +269,7 @@ done(void *data, struct zwp_text_input_v3 *zwp_text_input_v3,
|
|||
break;
|
||||
|
||||
byte_idx += wc_bytes;
|
||||
cell_idx += max(wcwidth(term->ime.preedit.cells[wc_idx].wc), 1);
|
||||
cell_idx += max(wcwidth(term->ime.preedit.cells[cell_idx].wc), 1);
|
||||
wc_idx++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue