From 37b0bcd7c15b6dac69ac8cb1c0d9d6a4fd5c54c0 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Sun, 9 Aug 2009 17:28:24 +0000 Subject: Sync OpenBSD patchset 226: Change the way the grid is stored, previously it was: - a two-dimensional array of cells; - a two-dimensional array of utf8 data; - an array of line lengths. Now it is a single array of a new struct grid_line each of which represents a line and contains the length and an array of cells and an array of utf8 data. This will make it easier to add additional per-line members, such as flags. --- window-copy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'window-copy.c') diff --git a/window-copy.c b/window-copy.c index d6b33116..d8c9e95f 100644 --- a/window-copy.c +++ b/window-copy.c @@ -1,4 +1,4 @@ -/* $Id: window-copy.c,v 1.73 2009-08-09 16:50:57 tcunha Exp $ */ +/* $Id: window-copy.c,v 1.74 2009-08-09 17:28:24 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -537,7 +537,7 @@ window_copy_find_length(struct window_pane *wp, u_int py) * width of the grid, and screen_write_copy treats them as spaces, so * ignore them here too. */ - px = wp->base.grid->size[py]; + px = wp->base.grid->linedata[py].cellsize; if (px > screen_size_x(&wp->base)) px = screen_size_x(&wp->base); while (px > 0) { -- cgit