summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadrul Habib Chowdhury <sadrul@users.sourceforge.net>2010-05-10 23:15:21 -0400
committerSadrul Habib Chowdhury <sadrul@users.sourceforge.net>2010-05-10 23:15:21 -0400
commit4f9101fc9d78581caef72a52cdd4767529912e1b (patch)
tree45fb5d70e9d46e4371e2fb12b7bf88cbafa31c8a
parent98bf4132c545e3880432d6866527ee0753d908fc (diff)
downloadscreen-4f9101fc9d78581caef72a52cdd4767529912e1b.tar.gz
Fix updating paused regions (in split mode).
Adding a multi-cell character in a split region doesn't always refresh properly. Fix that problem.
-rw-r--r--src/layer.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/layer.c b/src/layer.c
index 4ae587f..aeea318 100644
--- a/src/layer.c
+++ b/src/layer.c
@@ -335,7 +335,13 @@ int x, y;
#endif
if (l->l_pause.d)
- LayPauseUpdateRegion(l, x, x, y, y);
+ LayPauseUpdateRegion(l, x,
+#ifdef DW_CHARS
+ x + (c->mbcs ? 1 : 0)
+#else
+ x
+#endif
+ , y, y);
FOR_EACH_UNPAUSED_CANVAS(l,
{