summaryrefslogtreecommitdiff
path: root/lib/libncurses/lib_scroll.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libncurses/lib_scroll.c')
-rw-r--r--lib/libncurses/lib_scroll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libncurses/lib_scroll.c b/lib/libncurses/lib_scroll.c
index 1721a3fc1d13..03e71368f734 100644
--- a/lib/libncurses/lib_scroll.c
+++ b/lib/libncurses/lib_scroll.c
@@ -21,7 +21,7 @@ void scroll_window(WINDOW *win, int n, int regtop, int regbottom)
int line, i;
chtype *ptr, *temp;
chtype **saved;
-chtype blank = ' ';
+chtype blank = _nc_background(win);
saved = (chtype **)malloc(sizeof(chtype *) * abs(n));