-/* $OpenBSD: buffer.c,v 1.111 2021/03/23 18:40:29 lum Exp $ */
+/* $OpenBSD: buffer.c,v 1.112 2021/03/26 15:02:10 lum Exp $ */
/* This file is in the public domain. */
}
if (addlinef(blp, "%c%c%c %-*.*s%c%-6d %-*s",
- (bp == curbp) ? '.' : ' ', /* current buffer ? */
+ (bp == curbp) ? '>' : ' ', /* current buffer ? */
((bp->b_flag & BFCHG) != 0) ? '*' : ' ', /* changed ? */
- ((bp->b_flag & BFREADONLY) != 0) ? ' ' : '*',
+ ((bp->b_flag & BFREADONLY) != 0) ? '*' : ' ',
w - 5, /* four chars already written */
w - 5, /* four chars already written */
bp->b_bname, /* buffer name */
-.\" $OpenBSD: mg.1,v 1.121 2021/03/20 09:00:49 lum Exp $
+.\" $OpenBSD: mg.1,v 1.122 2021/03/26 15:02:10 lum Exp $
.\" This file is in the public domain.
.\"
-.Dd $Mdocdate: March 20 2021 $
+.Dd $Mdocdate: March 26 2021 $
.Dt MG 1
.Os
.Sh NAME
Toggle whether the line number is displayed in the modeline.
.It list-buffers
Display the list of available buffers.
+The first column in the output indicates which buffer is active with a '>'
+character.
+The second column indicates which buffers are modified.
+The third column indicates which buffers are read-only.
+The remaining columns are self-explanatory.
.It load
Prompt the user for a filename, and then execute commands
from that file.