* Copyright (c) 1981 Regents of the University of California.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)insch.c 5.8 (Berkeley) %G%";
* Do an insert-char on the line, leaving (cury, curx) unchanged.
register __LDATA
*end
, *temp1
, *temp2
;
end
= &win
->lines
[win
->cury
]->line
[win
->curx
];
temp1
= &win
->lines
[win
->cury
]->line
[win
->maxx
- 1];
bcopy(temp2
, temp1
, sizeof(__LDATA
));
temp1
->attr
&= ~__STANDOUT
;
touchline(win
, win
->cury
, win
->curx
, win
->maxx
- 1);
if (win
->cury
== LINES
- 1 &&
(win
->lines
[LINES
- 1]->line
[COLS
- 1].ch
!= ' ' ||
win
->lines
[LINES
-1]->line
[COLS
- 1].attr
!= 0))
if (win
->flags
& __SCROLLOK
) {