mirror of
https://github.com/tmux/tmux.git
synced 2025-11-01 23:26:02 +00:00
Fix padding for word function as well, GitHub issue 4425.
This commit is contained in:
7
format.c
7
format.c
@@ -5339,9 +5339,8 @@ format_grid_word(struct grid *gd, u_int x, u_int y)
|
|||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
grid_get_cell(gd, x, y, &gc);
|
grid_get_cell(gd, x, y, &gc);
|
||||||
if (gc.flags & GRID_FLAG_PADDING)
|
if ((~gc.flags & GRID_FLAG_PADDING) &&
|
||||||
break;
|
format_is_word_separator(ws, &gc)) {
|
||||||
if (format_is_word_separator(ws, &gc)) {
|
|
||||||
found = 1;
|
found = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -5377,7 +5376,7 @@ format_grid_word(struct grid *gd, u_int x, u_int y)
|
|||||||
|
|
||||||
grid_get_cell(gd, x, y, &gc);
|
grid_get_cell(gd, x, y, &gc);
|
||||||
if (gc.flags & GRID_FLAG_PADDING)
|
if (gc.flags & GRID_FLAG_PADDING)
|
||||||
break;
|
continue;
|
||||||
if (format_is_word_separator(ws, &gc))
|
if (format_is_word_separator(ws, &gc))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user