version 1.68, 2008/09/15 16:11:35 |
version 1.69, 2008/09/15 16:13:35 |
|
|
char *dp; |
char *dp; |
|
|
if (replacebuf == TRUE) |
if (replacebuf == TRUE) |
x = undo_enable(FALSE); |
x = undo_enable(FFRAND, 0); |
else |
else |
x = undo_enabled(); |
x = undo_enabled(); |
|
|
|
|
killbuffer(bp); |
killbuffer(bp); |
if ((bp = dired_(fname)) == NULL) |
if ((bp = dired_(fname)) == NULL) |
return (FALSE); |
return (FALSE); |
undo_enable(x); |
undo_enable(FFRAND, x); |
curbp = bp; |
curbp = bp; |
return (showbuffer(bp, curwp, WFFULL | WFMODE)); |
return (showbuffer(bp, curwp, WFFULL | WFMODE)); |
} else { |
} else { |
|
|
* We will delete this newline after insertion. |
* We will delete this newline after insertion. |
* Disable undo, as we create the undo record manually. |
* Disable undo, as we create the undo record manually. |
*/ |
*/ |
x2 = undo_enable(FALSE); |
x2 = undo_enable(FFRAND, 0); |
(void)lnewline(); |
(void)lnewline(); |
olp = lback(curwp->w_dotp); |
olp = lback(curwp->w_dotp); |
undo_enable(x2); |
undo_enable(FFRAND, x2); |
|
|
nline = 0; |
nline = 0; |
siz = 0; |
siz = 0; |
|
|
} |
} |
bp->b_lines += nline; |
bp->b_lines += nline; |
cleanup: |
cleanup: |
undo_enable(x); |
undo_enable(FFRAND, x); |
|
|
/* return FALSE if error */ |
/* return FALSE if error */ |
return (s != FIOERR); |
return (s != FIOERR); |