aboutsummaryrefslogtreecommitdiff
path: root/ime.c
diff options
context:
space:
mode:
Diffstat (limited to 'ime.c')
-rw-r--r--ime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ime.c b/ime.c
index bde063a8..970efc81 100644
--- a/ime.c
+++ b/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++;
}