From b37a2eea9a593452d23f7cacef8ec923f7a151a9 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 10 Sep 2017 19:28:58 +1000 Subject: [PATCH] Fix ctrl-y going of top of the screen --- utils/magiedit/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/magiedit/main.c b/utils/magiedit/main.c index 249b617..7b96f44 100644 --- a/utils/magiedit/main.c +++ b/utils/magiedit/main.c @@ -606,6 +606,10 @@ char *message_editor() { } } + if (position_y < top_of_screen) { + top_of_screen--; + } + // refresh screen; position_x = 0; if (position_y <= body_line_count) {