aboutsummaryrefslogtreecommitdiff
path: root/ime.c
diff options
context:
space:
mode:
Diffstat (limited to 'ime.c')
-rw-r--r--ime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ime.c b/ime.c
index b1852ed3..81e63884 100644
--- a/ime.c
+++ b/ime.c
@@ -199,7 +199,7 @@ done(void *data, struct zwp_text_input_v3 *zwp_text_input_v3,
for (int j = 1; j < width; j++) {
cell = &seat->ime.preedit.cells[cell_idx + j];
- cell->wc = CELL_MULT_COL_SPACER;
+ cell->wc = CELL_SPACER + width - j;
cell->attrs = (struct attributes){.clean = 1};
}
@@ -280,7 +280,7 @@ done(void *data, struct zwp_text_input_v3 *zwp_text_input_v3,
/* Expand cursor end to end of glyph */
while (cell_end > cell_begin && cell_end < cell_count &&
- seat->ime.preedit.cells[cell_end].wc == CELL_MULT_COL_SPACER)
+ seat->ime.preedit.cells[cell_end].wc >= CELL_SPACER)
{
cell_end++;
}