version 1.235, 2019/09/10 07:50:33 |
version 1.236, 2019/10/19 19:20:14 |
|
|
{ |
{ |
struct window_copy_mode_data *data = wme->data; |
struct window_copy_mode_data *data = wme->data; |
|
|
format_add(ft, "selection_present", "%d", data->screen.sel != NULL); |
|
format_add(ft, "scroll_position", "%d", data->oy); |
format_add(ft, "scroll_position", "%d", data->oy); |
format_add(ft, "rectangle_toggle", "%d", data->rectflag); |
format_add(ft, "rectangle_toggle", "%d", data->rectflag); |
|
|
|
format_add(ft, "copy_cursor_x", "%d", data->cx); |
|
format_add(ft, "copy_cursor_y", "%d", data->cy); |
|
|
|
format_add(ft, "selection_present", "%d", data->screen.sel != NULL); |
|
if (data->screen.sel != NULL) { |
|
format_add(ft, "selection_start_x", "%d", data->selx); |
|
format_add(ft, "selection_start_y", "%d", data->sely); |
|
format_add(ft, "selection_end_x", "%d", data->endselx); |
|
format_add(ft, "selection_end_y", "%d", data->endsely); |
|
} |
} |
} |
|
|
static void |
static void |