diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-05-16 16:48:19 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-05-16 16:48:19 +0000 |
| commit | 3405a9c81c981e0da06ba52c790a4a42a5e5c0c5 (patch) | |
| tree | b416b5b6fe1df6c8296e31308fd3a3117644c43d /ime.c | |
| parent | Merge branch 'vt-anywhere-fix2' (diff) | |
| parent | grid: reflow: qsort_r() is not portable (diff) | |
Merge branch 'reflow-performance'
Part of #504
Diffstat (limited to 'ime.c')
| -rw-r--r-- | ime.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++; } |
