diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2024-10-28 08:16:52 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2024-10-28 08:16:52 +0000 |
commit | cb3c0c0956f7cf7e74abd3d7f3d251703bb2ada0 (patch) | |
tree | 85d6feff207851b2550c383ab590cfcd55cb0439 /usr.bin | |
parent | b3dad72b0f3c4fedc5f89bdf75effd89c2fc89d0 (diff) |
Match tab cells when searching, from Alexander Arch in GitHub issue
4201.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/window-copy.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tmux/window-copy.c b/usr.bin/tmux/window-copy.c index 6b703d55f0c..e1bdea65b5c 100644 --- a/usr.bin/tmux/window-copy.c +++ b/usr.bin/tmux/window-copy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window-copy.c,v 1.361 2024/10/25 15:19:15 nicm Exp $ */ +/* $OpenBSD: window-copy.c,v 1.362 2024/10/28 08:16:51 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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); |