Fix: list-buffers sizes reported wrong sizes as it used curbp to access EOL flags in buffer mode.

This commit is contained in:
Renaud 2015-05-06 09:11:23 +08:00
parent 6dfc2f057e
commit 1adae6bead
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ static int makelist( int iflag)
lp = lforw(lp); lp = lforw(lp);
} }
if( curbp->b_mode & MDDOS) if( bp->b_mode & MDDOS)
nbytes += nlines ; nbytes += nlines ;
l_to_a( b, sizeof b, nbytes) ; /* 8 digits string buffer size. */ l_to_a( b, sizeof b, nbytes) ; /* 8 digits string buffer size. */