summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadrul Habib Chowdhury <sadrul@users.sourceforge.net>2010-05-10 22:52:51 -0400
committerSadrul Habib Chowdhury <sadrul@users.sourceforge.net>2010-05-10 22:52:51 -0400
commit98bf4132c545e3880432d6866527ee0753d908fc (patch)
treed08eb030f157abc1f6d52993e39311f4eb423e0d
parent07b5b146174d6c89a4f3c5bdd7a018b14ffc87f8 (diff)
downloadscreen-98bf4132c545e3880432d6866527ee0753d908fc.tar.gz
Fix a bug with displaying blank spaces with bce on.
With bce on, in some terminals, copying when applications use a theme with a custom background color other than the default ends up copying blank-spaces at the end of the lines as white-spces. This fixes that.
-rw-r--r--src/display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display.c b/src/display.c
index 2b3eca3..5fa11cb 100644
--- a/src/display.c
+++ b/src/display.c
@@ -2524,7 +2524,7 @@ int from, to, y, bce;
DisplayLine(oml, &mline_blank, y, from, to);
return;
}
- bcechar = mchar_blank;
+ bcechar = mchar_null;
rend_setbg(&bcechar, bce);
for (x = from; x <= to; x++)
copy_mchar2mline(&bcechar, &mline_old, x);