aboutsummaryrefslogtreecommitdiff
path: root/search.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-05-16 16:48:19 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-05-16 16:48:19 +0000
commit3405a9c81c981e0da06ba52c790a4a42a5e5c0c5 (patch)
treeb416b5b6fe1df6c8296e31308fd3a3117644c43d /search.c
parentMerge branch 'vt-anywhere-fix2' (diff)
parentgrid: reflow: qsort_r() is not portable (diff)
Merge branch 'reflow-performance'
Part of #504
Diffstat (limited to 'search.c')
-rw-r--r--search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/search.c b/search.c
index 02cea9e0..911b13c0 100644
--- a/search.c
+++ b/search.c
@@ -337,7 +337,7 @@ search_find_next(struct terminal *term)
row = term->grid->rows[end_row];
}
- if (row->cells[end_col].wc == CELL_MULT_COL_SPACER) {
+ if (row->cells[end_col].wc >= CELL_SPACER) {
end_col++;
continue;
}
@@ -461,7 +461,7 @@ search_match_to_end_of_word(struct terminal *term, bool spaces_only)
bool done = false;
for (; end_col < term->cols; end_col++) {
wchar_t wc = row->cells[end_col].wc;
- if (wc == CELL_MULT_COL_SPACER)
+ if (wc >= CELL_SPACER)
continue;
const struct composed *composed = NULL;