1
0
mirror of https://github.com/tmux/tmux.git synced 2025-03-24 14:58:47 +00:00

Handle padding cells correctly for regular expression searching, GitHub issue 4399 from

github at jyn dot dev.
This commit is contained in:
nicm 2025-03-17 20:33:20 +00:00
parent 4e4fe3eb39
commit 5eb30c1543

View File

@ -4263,6 +4263,8 @@ window_copy_match_at_cursor(struct window_copy_mode_data *data)
buf = xrealloc(buf, len + 2);
buf[len] = '\t';
len++;
} else if (gc.flags & GRID_FLAG_PADDING) {
/* nothing to do */
} else {
buf = xrealloc(buf, len + gc.data.size + 1);
memcpy(buf + len, gc.data.data, gc.data.size);