tPlace cursor at the start of line with g and G - ve - a minimal text editor (work in progress)
HTML git clone git://src.adamsgaard.dk/ve
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit c5046993e84738e0b50d493168c058ed88d5b268
DIR parent 8455a8714673d14e2e3b04e3072bab9bb26c7329
HTML Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 7 Aug 2019 10:49:08 +0200
Place cursor at the start of line with g and G
Diffstat:
M input.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
DIR diff --git a/input.c b/input.c
t@@ -175,9 +175,11 @@ editor_process_keypress()
break;
case 'g':
+ E.cursor_x = 0;
E.cursor_y = 0;
break;
case 'G':
+ E.cursor_x = 0;
E.cursor_y = E.num_rows - 1;
break;