Set the column width when changing the background using wbkgd(), otherwise
we will see zero width characters in refresh.c:makech().
This commit is contained in:
parent
260ad27047
commit
fe324c36e9
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: background.c,v 1.12 2007/05/29 11:10:55 blymn Exp $ */
|
||||
/* $NetBSD: background.c,v 1.13 2007/09/19 22:13:14 jdc Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
@ -38,7 +38,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: background.c,v 1.12 2007/05/29 11:10:55 blymn Exp $");
|
||||
__RCSID("$NetBSD: background.c,v 1.13 2007/09/19 22:13:14 jdc Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <stdlib.h>
|
||||
@ -119,6 +119,9 @@ wbkgd(WINDOW *win, chtype ch)
|
||||
else
|
||||
win->lines[y]->line[x].attr =
|
||||
ch & __ATTRIBUTES;
|
||||
#ifdef HAVE_WCHAR
|
||||
SET_WCOL(win->lines[y]->line[x], 1);
|
||||
#endif
|
||||
}
|
||||
__touchwin(win);
|
||||
return(OK);
|
||||
|
Loading…
Reference in New Issue
Block a user