From 4f9101fc9d78581caef72a52cdd4767529912e1b Mon Sep 17 00:00:00 2001 From: Sadrul Habib Chowdhury Date: Mon, 10 May 2010 23:15:21 -0400 Subject: Fix updating paused regions (in split mode). Adding a multi-cell character in a split region doesn't always refresh properly. Fix that problem. --- src/layer.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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, { -- cgit v1.2.1