mirror of
https://github.com/tmux/tmux.git
synced 2025-03-29 10:18:49 +00:00
Handle padding cells correctly for regular expression searching, GitHub issue 4399 from
github at jyn dot dev.
This commit is contained in:
parent
4e4fe3eb39
commit
5eb30c1543
@ -4263,6 +4263,8 @@ window_copy_match_at_cursor(struct window_copy_mode_data *data)
|
|||||||
buf = xrealloc(buf, len + 2);
|
buf = xrealloc(buf, len + 2);
|
||||||
buf[len] = '\t';
|
buf[len] = '\t';
|
||||||
len++;
|
len++;
|
||||||
|
} else if (gc.flags & GRID_FLAG_PADDING) {
|
||||||
|
/* nothing to do */
|
||||||
} else {
|
} else {
|
||||||
buf = xrealloc(buf, len + gc.data.size + 1);
|
buf = xrealloc(buf, len + gc.data.size + 1);
|
||||||
memcpy(buf + len, gc.data.data, gc.data.size);
|
memcpy(buf + len, gc.data.data, gc.data.size);
|
||||||
|
Loading…
Reference in New Issue
Block a user