be

based editor
git clone git://git.kocotian.pl/be.git
Log | Files | Refs | README | LICENSE

commit 4a1ab6695ab83de53fd0910dbeedfc474f175a73
parent 97d404b0977d58d8fed9bb85879fff6b87c58f2e
Author: kocotian <kocotian@kocotian.pl>
Date:   Mon, 19 Apr 2021 08:55:05 +0200

Better status

Diffstat:
Mbe.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/be.c b/be.c @@ -237,12 +237,15 @@ appendStatus(String *ab) abAppend(ab, "\r", 1); /* status drawing */ { - abPrintf(ab, cp, 256, "%c:%c %s L%ld (%s)", + abPrintf(ab, cp, 256, "%c:%c %s L%ld of %ld C%ld of %ld (%s)", CURBUF(editor).anonymous ? 'U' : '-', CURBUF(editor).dirty ? '*' : '-', CURBUF(editor).anonymous ? "*anonymous*" : CURBUF(editor).name, CURBUF(editor).y + 1, + CURBUF(editor).rows.len, + CURBUF(editor).x + 1, + CURBUF(editor).rows.data[CURBUF(editor).y].len, lang_modes[CURBUF(editor).mode] ); }