summaryrefslogtreecommitdiffstats
path: root/screen.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-11-24 19:29:56 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-11-24 19:29:56 +0000
commit5ad9b31ac5555d46832e1896feba92d1c41409d0 (patch)
treede0bae33162b7877d00d40ff81c1d0136b6a767d /screen.c
parentb9034946adeb2ed03a1266431a27e2a24498c350 (diff)
Scroll region reset homes the cursor, so start at 0,0 when drawing. Also don't set region after DECRC.
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/screen.c b/screen.c
index 2bb72fdd..1cd2072f 100644
--- a/screen.c
+++ b/screen.c
@@ -1,4 +1,4 @@
-/* $Id: screen.c,v 1.43 2007-11-24 17:58:45 nicm Exp $ */
+/* $Id: screen.c,v 1.44 2007-11-24 19:29:56 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -278,8 +278,9 @@ screen_draw_start(struct screen_draw_ctx *ctx,
ctx->ox = ox;
ctx->oy = oy;
- ctx->cx = s->cx;
- ctx->cy = s->cy;
+ /* Resetting the scroll region homes the cursor so start at 0,0. */
+ ctx->cx = 0;
+ ctx->cy = 0;
ctx->sel.flag = 0;