aboutsummaryrefslogtreecommitdiff
path: root/window-copy.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-08-08 13:29:27 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-08-08 13:29:27 +0000
commit5e01b6d663abc086847c9bec145edeb9cd91530a (patch)
treea8708ca5f4a199352452945133a6fc11af807e08 /window-copy.c
parente89e70e71575417195285a3ea55c430654f9fc21 (diff)
downloadrtmux-5e01b6d663abc086847c9bec145edeb9cd91530a.tar.gz
rtmux-5e01b6d663abc086847c9bec145edeb9cd91530a.tar.bz2
rtmux-5e01b6d663abc086847c9bec145edeb9cd91530a.zip
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 containts 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.
Diffstat (limited to 'window-copy.c')
-rw-r--r--window-copy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window-copy.c b/window-copy.c
index 7996359d..db1c3506 100644
--- a/window-copy.c
+++ b/window-copy.c
@@ -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) {