diff options
author | Kjell Wooding <kjell@cvs.openbsd.org> | 2006-07-25 08:22:33 +0000 |
---|---|---|
committer | Kjell Wooding <kjell@cvs.openbsd.org> | 2006-07-25 08:22:33 +0000 |
commit | b27fa2f6a9aae6a0a87897200334b193aa2882dd (patch) | |
tree | 78c6dd499c6a7fa94bfdc2b904111a8000d3f2e4 /usr.bin/mg/file.c | |
parent | 13c96fecbc7c5b3efb9b2f86588c8027f4de4ae0 (diff) |
Rename the header line of a buffer to b_headp, from the remarkably
unintuitive b_linep. No binary change.
Diffstat (limited to 'usr.bin/mg/file.c')
-rw-r--r-- | usr.bin/mg/file.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/mg/file.c b/usr.bin/mg/file.c index f96f19b3319..75b3b006f88 100644 --- a/usr.bin/mg/file.c +++ b/usr.bin/mg/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.60 2006/07/08 17:56:10 kjell Exp $ */ +/* $OpenBSD: file.c,v 1.61 2006/07/25 08:22:32 kjell Exp $ */ /* This file is in the public domain. */ @@ -218,7 +218,7 @@ readin(char *fname) for (wp = wheadp; wp != NULL; wp = wp->w_wndp) { if (wp->w_bufp == curbp) { - wp->w_dotp = wp->w_linep = lforw(curbp->b_linep); + wp->w_dotp = wp->w_linep = lforw(curbp->b_headp); wp->w_doto = 0; wp->w_markp = NULL; wp->w_marko = 0; @@ -341,7 +341,7 @@ insertfile(char *fname, char *newname, int replacebuf) oline = curwp->w_dotline; (void)lnewline(); olp = lback(curwp->w_dotp); - if (olp == curbp->b_linep) { + if (olp == curbp->b_headp) { /* if at end of buffer, create a line to insert before */ (void)lnewline(); curwp->w_dotp = lback(curwp->w_dotp); @@ -423,7 +423,7 @@ endoffile: curwp->w_dotp = olp; curwp->w_doto = opos; curwp->w_dotline = oline; - if (olp == curbp->b_linep) + if (olp == curbp->b_headp) curwp->w_dotp = lforw(olp); if (newname != NULL) bp->b_flag |= BFCHG | BFBAK; /* Need a backup. */ @@ -436,7 +436,7 @@ endoffile: * pointers in other windows correctly if they are also at the end of * buffer. */ - lp1 = bp->b_linep; + lp1 = bp->b_headp; if (curwp->w_markp == lp1) { lp2 = curwp->w_dotp; } else { |