version 1.4, 1997/02/25 00:04:46 |
version 1.5, 2001/11/19 19:02:18 |
|
|
#include "tt.h" |
#include "tt.h" |
|
|
wwdelchar(w, row, col) |
wwdelchar(w, row, col) |
register struct ww *w; |
struct ww *w; |
{ |
{ |
register i; |
int i; |
int nvis; |
int nvis; |
|
|
/* |
/* |
* First, shift the line. |
* First, shift the line. |
*/ |
*/ |
{ |
{ |
register union ww_char *p, *q; |
union ww_char *p, *q; |
|
|
p = &w->ww_buf[row][col]; |
p = &w->ww_buf[row][col]; |
q = p + 1; |
q = p + 1; |
|
|
* Now find out how much is actually changed, and fix wwns. |
* Now find out how much is actually changed, and fix wwns. |
*/ |
*/ |
{ |
{ |
register union ww_char *buf; |
union ww_char *buf; |
register char *win; |
char *win; |
register union ww_char *ns; |
union ww_char *ns; |
register unsigned char *smap; |
unsigned char *smap; |
char touched; |
char touched; |
|
|
nvis = 0; |
nvis = 0; |
|
|
* Can/Should we use delete character? |
* Can/Should we use delete character? |
*/ |
*/ |
if (tt.tt_delchar != 0 && nvis > (wwncol - col) / 2) { |
if (tt.tt_delchar != 0 && nvis > (wwncol - col) / 2) { |
register union ww_char *p, *q; |
union ww_char *p, *q; |
|
|
xxdelchar(row, col); |
xxdelchar(row, col); |
p = &wwos[row][col]; |
p = &wwos[row][col]; |