version 1.33, 2014/10/13 21:01:05 |
version 1.34, 2014/10/17 13:25:13 |
|
|
|
|
curwp->w_dotp = lforw(curwp->w_dotp); |
curwp->w_dotp = lforw(curwp->w_dotp); |
curwp->w_dotline++; |
curwp->w_dotline++; |
|
|
|
/* do not continue after end of buffer */ |
|
if (lforw(curwp->w_dotp) == curbp->b_headp) { |
|
gotoeol(FFRAND, 1); |
|
curwp->w_rflag |= WFMOVE; |
|
return (FALSE); |
|
} |
} |
} |
} |
} |
/* covers corner case of no '\n' at end of buffer */ |
|
if (lforw(curwp->w_dotp) == curbp->b_headp) |
|
gotoeol(FFRAND, 1); |
|
|
|
/* force screen update */ |
/* force screen update */ |
curwp->w_rflag |= WFMOVE; |
curwp->w_rflag |= WFMOVE; |
|
|
int |
int |
killpara(int f, int n) |
killpara(int f, int n) |
{ |
{ |
int status; /* returned status of functions */ |
int status, end = FALSE; /* returned status of functions */ |
|
|
/* for each paragraph to delete */ |
/* for each paragraph to delete */ |
while (n--) { |
while (n--) { |
|
|
/* mark out the end and beginning of the para to delete */ |
/* mark out the end and beginning of the para to delete */ |
(void)gotoeop(FFRAND, 1); |
if (!gotoeop(FFRAND, 1)) |
|
end = TRUE; |
|
|
/* set the mark here */ |
/* set the mark here */ |
curwp->w_markp = curwp->w_dotp; |
curwp->w_markp = curwp->w_dotp; |
|
|
/* and delete it */ |
/* and delete it */ |
if ((status = killregion(FFRAND, 1)) != TRUE) |
if ((status = killregion(FFRAND, 1)) != TRUE) |
return (status); |
return (status); |
|
|
|
if (end) |
|
return (TRUE); |
} |
} |
return (TRUE); |
return (TRUE); |
} |
} |