version 1.68, 2015/11/12 11:05:34 |
version 1.69, 2015/11/12 11:09:11 |
|
|
struct grid_cell gc; |
struct grid_cell gc; |
size_t last, xoff = 0; |
size_t last, xoff = 0; |
char hdr[32], label[32]; |
char hdr[32], label[32]; |
int utf8flag, key; |
int key; |
|
|
if (data->callbackfn == NULL) |
if (data->callbackfn == NULL) |
fatalx("called before callback assigned"); |
fatalx("called before callback assigned"); |
|
|
last = screen_size_y(s) - 1; |
last = screen_size_y(s) - 1; |
utf8flag = options_get_number(wp->window->options, "utf8"); |
|
memcpy(&gc, &grid_default_cell, sizeof gc); |
memcpy(&gc, &grid_default_cell, sizeof gc); |
if (data->selected == data->top + py) |
if (data->selected == data->top + py) |
style_apply(&gc, oo, "mode-style"); |
style_apply(&gc, oo, "mode-style"); |
|
|
xsnprintf(label, sizeof label, "(%c)", key); |
xsnprintf(label, sizeof label, "(%c)", key); |
else |
else |
xsnprintf(label, sizeof label, "(%d)", item->pos); |
xsnprintf(label, sizeof label, "(%d)", item->pos); |
screen_write_nputs(ctx, screen_size_x(s) - 1, &gc, utf8flag, |
screen_write_nputs(ctx, screen_size_x(s) - 1, &gc, |
"%*s %s %s", data->width + 2, label, |
"%*s %s %s", data->width + 2, label, |
/* |
/* |
* Add indication to tree if necessary about whether it's |
* Add indication to tree if necessary about whether it's |