be

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

commit f940d720cf23c7e65da3897a1a334801abb14f0c
parent 8a8363e2247e2331ff6e1f55e9f7de45f63e55c2
Author: kocotian <kocotian@kocotian.pl>
Date:   Mon, 19 Apr 2021 11:38:12 +0200

Fixed movement (again)

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

diff --git a/be.c b/be.c @@ -577,7 +577,7 @@ cursormove(const Arg *arg) minibufferPrint("Already on top"); break; case 3: /* right */ - if (CURBUF(editor).x < (signed)CURBUF(editor).rows.data[CURBUF(editor).y].len) + if (CURBUF(editor).x < (signed)CURBUF(editor).rows.data[CURBUF(editor).y].len - 1) ++(CURBUF(editor).x); else minibufferPrint("Already on end of line"); @@ -596,7 +596,7 @@ static void ending(const Arg *arg) { (void)arg; - CURBUF(editor).x = (signed)CURBUF(editor).rows.data[CURBUF(editor).y].len; + CURBUF(editor).x = (signed)CURBUF(editor).rows.data[CURBUF(editor).y].len - 1; } static void