mirror of
https://github.com/tmux/tmux.git
synced 2025-03-24 23:08:47 +00:00
Handle padding cells correctly when searching, GitHub issue 2301.
This commit is contained in:
parent
468be2a37f
commit
8f1179d656
@ -2601,6 +2601,11 @@ window_copy_cellstring(const struct grid_line *gl, u_int px, size_t *size,
|
||||
}
|
||||
|
||||
gce = &gl->celldata[px];
|
||||
if (gce->flags & GRID_FLAG_PADDING) {
|
||||
*size = 0;
|
||||
*allocated = 0;
|
||||
return (NULL);
|
||||
}
|
||||
if (~gce->flags & GRID_FLAG_EXTENDED) {
|
||||
*size = 1;
|
||||
*allocated = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user