version 1.1, 2010/06/21 21:44:09 |
version 1.2, 2010/12/30 23:16:18 |
|
|
if ((wl = cmd_find_window(ctx, data->target, NULL)) == NULL) |
if ((wl = cmd_find_window(ctx, data->target, NULL)) == NULL) |
return (-1); |
return (-1); |
|
|
if (paste_get_top(&s->buffers) == NULL) |
if (paste_get_top(&global_buffers) == NULL) |
return (0); |
return (0); |
|
|
if (window_pane_set_mode(wl->window->active, &window_choose_mode) != 0) |
if (window_pane_set_mode(wl->window->active, &window_choose_mode) != 0) |
return (0); |
return (0); |
|
|
idx = 0; |
idx = 0; |
while ((pb = paste_walk_stack(&s->buffers, &idx)) != NULL) { |
while ((pb = paste_walk_stack(&global_buffers, &idx)) != NULL) { |
tmp = paste_print(pb, 50); |
tmp = paste_print(pb, 50); |
window_choose_add(wl->window->active, idx - 1, |
window_choose_add(wl->window->active, idx - 1, |
"%u: %zu bytes: \"%s\"", idx - 1, pb->size, tmp); |
"%u: %zu bytes: \"%s\"", idx - 1, pb->size, tmp); |