diff --git a/window-copy.c b/window-copy.c index 7a2734ac..8542092e 100644 --- a/window-copy.c +++ b/window-copy.c @@ -3082,6 +3082,9 @@ window_copy_search_compare(struct grid *gd, u_int px, u_int py, grid_get_cell(sgd, spx, 0, &sgc); sud = &sgc.data; + if (*sud->data == '\t' && sud->size == 1 && gc.flags & GRID_FLAG_TAB) + return (1); + if (ud->size != sud->size || ud->width != sud->width) return (0);