be

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

commit 08a50740d512a708333e98eb602b397f2c6b9790
parent 6af8b2f72fa3c16fd94ecb18c8223597cc50f6a9
Author: kocotian <kocotian@kocotian.pl>
Date:   Mon, 19 Apr 2021 11:16:44 +0200

Inserting character makes buffer dirty

Diffstat:
Mbe.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/be.c b/be.c @@ -607,6 +607,7 @@ insertchar(const Arg *arg) memmove(CURBUF(editor).rows.data[CURBUF(editor).y].data + CURBUF(editor).x + 1, CURBUF(editor).rows.data[CURBUF(editor).y].data + CURBUF(editor).x, CURBUF(editor).rows.data[CURBUF(editor).y].len - (unsigned)CURBUF(editor).x); + CURBUF(editor).dirty = 1; CURBUF(editor).rows.data[CURBUF(editor).y].data[CURBUF(editor).x++] = arg->c; }