1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-12-23 09:36:31 -05: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

@ -392,7 +392,7 @@ static int makelist( int iflag)
*cp1++ = c; *cp1++ = c;
cp2 = &bp->b_fname[0]; /* File name */ cp2 = &bp->b_fname[0]; /* File name */
if (*cp2 != 0) { 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++ = ' '; *cp1++ = ' ';
while ((c = *cp2++) != 0) { while ((c = *cp2++) != 0) {
if (cp1 < &line[MAXLINE - 1]) if (cp1 < &line[MAXLINE - 1])