1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-09-27 16:05:54 -04:00

Adjust columns according to buffer name size in list-buffers.

This commit is contained in:
Renaud 2014-05-31 10:02:39 +08:00
parent 3847f03f04
commit 0c423e4e04

View File

@ -317,8 +317,8 @@ static int makelist( int iflag)
if ((s = bclear(blistp)) != TRUE) /* Blow old text away */
return s;
strcpy(blistp->b_fname, "");
if( addline("ACT MODES Size Buffer File") == FALSE
|| addline("--- ----- ---- ------ ----") == FALSE)
if( addline("ACT MODES Size Buffer File") == FALSE
|| addline("--- ----- ---- ------ ----") == FALSE)
return FALSE;
bp = bheadp; /* For all buffers */
@ -392,7 +392,7 @@ static int makelist( int iflag)
*cp1++ = c;
cp2 = &bp->b_fname[0]; /* File name */
if (*cp2 != 0) {
while (cp1 < &line[3 + 1 + 5 + 1 + 6 + 4 + NBUFN])
while( cp1 < &line[ 3 + 1 + NUMMODES + 1 + 6 + 1 + NBUFN + 1])
*cp1++ = ' ';
while ((c = *cp2++) != 0) {
if (cp1 < &line[MAXLINE - 1])