diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-08-20 17:25:35 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-06-24 15:30:45 +0000 |
| commit | b9ef703eb14ba2357b847b62a715b4e97f690209 (patch) | |
| tree | c6e65e05499e292a4f51d09453f44d1bdf0f93ad /selection.c | |
| parent | Merge branch 'sixel-heap-user-after-free-after-blending' (diff) | |
wip: grapheme shaping
Diffstat (limited to 'selection.c')
| -rw-r--r-- | selection.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/selection.c b/selection.c index 555b32f2..cafb161e 100644 --- a/selection.c +++ b/selection.c @@ -249,7 +249,7 @@ selection_find_word_boundary_left(struct terminal *term, struct coord *pos, if (c >= CELL_COMB_CHARS_LO && c < (CELL_COMB_CHARS_LO + term->composed_count)) { - c = term->composed[c - CELL_COMB_CHARS_LO].base; + c = term->composed[c - CELL_COMB_CHARS_LO].chars[0]; } bool initial_is_space = c == 0 || iswspace(c); @@ -289,7 +289,7 @@ selection_find_word_boundary_left(struct terminal *term, struct coord *pos, if (c >= CELL_COMB_CHARS_LO && c < (CELL_COMB_CHARS_LO + term->composed_count)) { - c = term->composed[c - CELL_COMB_CHARS_LO].base; + c = term->composed[c - CELL_COMB_CHARS_LO].chars[0]; } bool is_space = c == 0 || iswspace(c); @@ -328,7 +328,7 @@ selection_find_word_boundary_right(struct terminal *term, struct coord *pos, if (c >= CELL_COMB_CHARS_LO && c < (CELL_COMB_CHARS_LO + term->composed_count)) { - c = term->composed[c - CELL_COMB_CHARS_LO].base; + c = term->composed[c - CELL_COMB_CHARS_LO].chars[0]; } bool initial_is_space = c == 0 || iswspace(c); @@ -370,7 +370,7 @@ selection_find_word_boundary_right(struct terminal *term, struct coord *pos, if (c >= CELL_COMB_CHARS_LO && c < (CELL_COMB_CHARS_LO + term->composed_count)) { - c = term->composed[c - CELL_COMB_CHARS_LO].base; + c = term->composed[c - CELL_COMB_CHARS_LO].chars[0]; } bool is_space = c == 0 || iswspace(c); |
