version 1.41, 2005/06/03 08:23:12 |
version 1.42, 2005/06/03 15:18:05 |
|
|
{ |
{ |
BUFFER *bp; |
BUFFER *bp; |
MGWIN *wp; |
MGWIN *wp; |
char *line; |
char *line = NULL; |
int i; |
int i, ret = FALSE; |
|
|
if (curwp->w_dotp->l_text[listbuf_ncol/2 - 1] == '$') { |
if (curwp->w_dotp->l_text[listbuf_ncol/2 - 1] == '$') { |
ewprintf("buffer name truncated"); |
ewprintf("buffer name truncated"); |
|
|
} |
} |
} |
} |
if (i == 0) |
if (i == 0) |
return (FALSE); |
goto cleanup; |
|
|
for (bp = bheadp; bp != NULL; bp = bp->b_bufp) { |
for (bp = bheadp; bp != NULL; bp = bp->b_bufp) { |
if (strcmp(bp->b_bname, line) == 0) |
if (strcmp(bp->b_bname, line) == 0) |
break; |
break; |
} |
} |
if (bp == NULL) |
if (bp == NULL) |
return (FALSE); |
goto cleanup; |
|
|
if ((wp = popbuf(bp)) == NULL) |
if ((wp = popbuf(bp)) == NULL) |
return (FALSE); |
goto cleanup; |
curbp = bp; |
curbp = bp; |
curwp = wp; |
curwp = wp; |
|
|
if (only) |
if (only) |
return (onlywind(f, n)); |
ret = (onlywind(f, n)); |
|
else |
|
ret = TRUE; |
|
|
return (TRUE); |
cleanup: |
|
free(line); |
|
|
|
return (ret); |
} |
} |
|
|
/* |
/* |