From 1adae6beadcc2b65730ea437830e2dcc15fccdbc Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Wed, 6 May 2015 09:11:23 +0800 Subject: [PATCH] Fix: list-buffers sizes reported wrong sizes as it used curbp to access EOL flags in buffer mode. --- buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buffer.c b/buffer.c index c1d3829..ed232f8 100644 --- a/buffer.c +++ b/buffer.c @@ -389,7 +389,7 @@ static int makelist( int iflag) lp = lforw(lp); } - if( curbp->b_mode & MDDOS) + if( bp->b_mode & MDDOS) nbytes += nlines ; l_to_a( b, sizeof b, nbytes) ; /* 8 digits string buffer size. */