mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Flag tabs if possible in the grid cell so they can be preserved on
copying and capture-pane. From Alexander Arch in GitHub issue 4201.
This commit is contained in:
@ -345,6 +345,8 @@ grid_reader_cell_equals_data(const struct grid_cell *gc,
|
||||
{
|
||||
if (gc->flags & GRID_FLAG_PADDING)
|
||||
return (0);
|
||||
if (gc->flags & GRID_FLAG_TAB && ud->size == 1 && *ud->data == '\t')
|
||||
return (1);
|
||||
if (gc->data.size != ud->size)
|
||||
return (0);
|
||||
return (memcmp(gc->data.data, ud->data, gc->data.size) == 0);
|
||||
|
Reference in New Issue
Block a user