From 7a82e86827e3d863a6dc4f1d50985f287d1ff86b Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 8 Dec 2008 16:19:51 +0000 Subject: Make window options work the same was as session options, add mode-fg/mode-bg options, force -g for global on set/show/setw/showw/ --- screen.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'screen.c') diff --git a/screen.c b/screen.c index 550eb58a..6a30f3a7 100644 --- a/screen.c +++ b/screen.c @@ -1,4 +1,4 @@ -/* $Id: screen.c,v 1.76 2008-10-09 05:31:04 nicm Exp $ */ +/* $Id: screen.c,v 1.77 2008-12-08 16:19:51 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -183,10 +183,13 @@ screen_resize_y(struct screen *s, u_int sy) /* Set selection. */ void -screen_set_selection(struct screen *s, u_int sx, u_int sy, u_int ex, u_int ey) +screen_set_selection(struct screen *s, + u_int sx, u_int sy, u_int ex, u_int ey, struct grid_cell *gc) { struct screen_sel *sel = &s->sel; + memcpy(&sel->cell, gc, sizeof sel->cell); + sel->flag = 1; if (ey < sy || (sy == ey && ex < sx)) { sel->sx = ex; sel->sy = ey; -- cgit