commit c5046993e84738e0b50d493168c058ed88d5b268 parent 8455a8714673d14e2e3b04e3072bab9bb26c7329 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(-)
diff --git a/input.c b/input.c @@ -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;