aboutsummaryrefslogtreecommitdiff
path: root/screen.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-12-08 16:19:51 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-12-08 16:19:51 +0000
commit7a82e86827e3d863a6dc4f1d50985f287d1ff86b (patch)
tree34bcc703d5d79065c5ef364be2a6ebfbc13cf6d0 /screen.c
parentf008d303e75c185eebcbb493b4e6d49bb400f694 (diff)
downloadrtmux-7a82e86827e3d863a6dc4f1d50985f287d1ff86b.tar.gz
rtmux-7a82e86827e3d863a6dc4f1d50985f287d1ff86b.tar.bz2
rtmux-7a82e86827e3d863a6dc4f1d50985f287d1ff86b.zip
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/
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c7
1 files changed, 5 insertions, 2 deletions
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 <nicm@users.sourceforge.net>
@@ -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;