Change cellused/size to 16 bits and time to 32 bits in grid_line and add

the OSC 133 positions (size stays the same).
This commit is contained in:
nicm
2026-07-20 11:16:33 +00:00
committed by tmux update bot
parent efcfc55535
commit d13b69ece4
6 changed files with 166 additions and 49 deletions

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: window-copy.c,v 1.421 2026/07/14 17:17:18 nicm Exp $ */
/* $OpenBSD: window-copy.c,v 1.422 2026/07/20 11:16:33 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1107,9 +1107,11 @@ window_copy_formats(struct window_mode_entry *wme, struct format_tree *ft)
u_int hsize = screen_hsize(data->backing);
u_int position, limit;
struct grid_line *gl;
time_t t;
gl = grid_get_line(data->backing->grid, hsize - data->oy);
format_add(ft, "top_line_time", "%llu", (unsigned long long)gl->time);
t = grid_line_time(gl);
format_add(ft, "top_line_time", "%llu", (unsigned long long)t);
format_add(ft, "scroll_position", "%d", data->oy);
if (window_copy_line_number_is_absolute(wme)) {