Use mvwchgat(3), which is not a macro in general (and in our case).
This commit is contained in:
parent
aee2cbfef0
commit
2b97f00020
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cl_funcs.c,v 1.6 2017/11/13 01:37:48 rin Exp $ */
|
||||
/* $NetBSD: cl_funcs.c,v 1.7 2017/11/13 01:51:47 rin Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 1993, 1994
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
|
@ -16,7 +16,7 @@
|
|||
static const char sccsid[] = "Id: cl_funcs.c,v 10.72 2002/03/02 23:18:33 skimo Exp (Berkeley) Date: 2002/03/02 23:18:33 ";
|
||||
#endif /* not lint */
|
||||
#else
|
||||
__RCSID("$NetBSD: cl_funcs.c,v 1.6 2017/11/13 01:37:48 rin Exp $");
|
||||
__RCSID("$NetBSD: cl_funcs.c,v 1.7 2017/11/13 01:51:47 rin Exp $");
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
|
@ -314,9 +314,12 @@ cl_cursor(SCR *sp, size_t *yp, size_t *xp)
|
|||
int
|
||||
cl_deleteln(SCR *sp)
|
||||
{
|
||||
CHAR_T ch;
|
||||
WINDOW *win;
|
||||
size_t col, lno, spcnt, y, x;
|
||||
size_t y, x;
|
||||
#ifndef HAVE_MVWCHGAT
|
||||
CHAR_T ch;
|
||||
size_t col, lno, spcnt;
|
||||
#endif
|
||||
|
||||
win = CLSP(sp) ? CLSP(sp) : stdscr;
|
||||
|
||||
|
@ -340,7 +343,7 @@ cl_deleteln(SCR *sp)
|
|||
*/
|
||||
if (!F_ISSET(sp, SC_SCR_EXWROTE) && IS_SPLIT(sp)) {
|
||||
getyx(win, y, x);
|
||||
#ifdef mvchgat
|
||||
#ifdef HAVE_MVWCHGAT
|
||||
mvwchgat(win, RLNO(sp, LASTLINE(sp)), 0, -1, A_NORMAL, 0, NULL);
|
||||
#else
|
||||
for (lno = RLNO(sp, LASTLINE(sp)), col = spcnt = 0;;) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.9 2017/11/06 03:37:52 rin Exp $
|
||||
# $NetBSD: Makefile,v 1.10 2017/11/13 01:51:47 rin Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
|
@ -9,6 +9,7 @@ CWARNFLAGS.clang+= -Wno-uninitialized -Wno-format-security
|
|||
CPPFLAGS+=-I${DIST}/include -I${.CURDIR} -I. -DGTAGS
|
||||
CPPFLAGS+=-DHAVE_OPENPTY -DHAVE_UTIL_H
|
||||
CPPFLAGS+=-DHAVE_SIGTIMEDWAIT
|
||||
CPPFLAGS+=-DHAVE_MVWCHGAT
|
||||
|
||||
#DBG=-g
|
||||
#CPPFLAGS+=-DLOGDEBUG -DTRACE
|
||||
|
|
Loading…
Reference in New Issue