mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-18 23:36:23 -05:00
Adjust columns according to buffer name size in list-buffers.
This commit is contained in:
parent
3847f03f04
commit
0c423e4e04
6
buffer.c
6
buffer.c
@ -317,8 +317,8 @@ static int makelist( int iflag)
|
|||||||
if ((s = bclear(blistp)) != TRUE) /* Blow old text away */
|
if ((s = bclear(blistp)) != TRUE) /* Blow old text away */
|
||||||
return s;
|
return s;
|
||||||
strcpy(blistp->b_fname, "");
|
strcpy(blistp->b_fname, "");
|
||||||
if( addline("ACT MODES Size Buffer File") == FALSE
|
if( addline("ACT MODES Size Buffer File") == FALSE
|
||||||
|| addline("--- ----- ---- ------ ----") == FALSE)
|
|| addline("--- ----- ---- ------ ----") == FALSE)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
bp = bheadp; /* For all buffers */
|
bp = bheadp; /* For all buffers */
|
||||||
|
|
||||||
@ -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])
|
||||||
|
Loading…
Reference in New Issue
Block a user