aboutsummaryrefslogtreecommitdiff
path: root/screen-redraw.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-03-31 18:39:45 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-03-31 18:39:45 +0000
commit6c27f1c33533bbc3223661d21cf43d97dee55c80 (patch)
tree52c61a3e2450e3b32a675b2acd33c080d45da37c /screen-redraw.c
parent9bdba2e84fe22ce6583c6c606bc19713a54f356a (diff)
downloadrtmux-6c27f1c33533bbc3223661d21cf43d97dee55c80.tar.gz
rtmux-6c27f1c33533bbc3223661d21cf43d97dee55c80.tar.bz2
rtmux-6c27f1c33533bbc3223661d21cf43d97dee55c80.zip
Draw vertical line on the right when window size is limited.
Diffstat (limited to 'screen-redraw.c')
-rw-r--r--screen-redraw.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/screen-redraw.c b/screen-redraw.c
index d5099a31..fc90c3a2 100644
--- a/screen-redraw.c
+++ b/screen-redraw.c
@@ -1,4 +1,4 @@
-/* $Id: screen-redraw.c,v 1.29 2009-03-28 10:15:01 nicm Exp $ */
+/* $Id: screen-redraw.c,v 1.30 2009-03-31 18:39:45 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -73,6 +73,14 @@ screen_redraw_screen(struct client *c, struct screen *s)
if (w->sy < c->tty.sy - status)
screen_redraw_blanky(c, w->sy, c->tty.sy - status - w->sy, '=');
+ /* Draw right border line. */
+ if (w->sx < c->tty.sx) {
+ for (i = 0; i < c->tty.sy; i++) {
+ tty_putcode2(&c->tty, TTYC_CUP, i, w->sx);
+ tty_putc(&c->tty, '|');
+ }
+ }
+
/* Draw the status line. */
screen_redraw_status(c);
}