From 8f9593d2d58d9df4faa40442f45e3c71ee339113 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Fri, 8 Dec 2023 20:27:55 +0300 Subject: [PATCH] (move_to_top): fix a 14-years error in condition. Signed-off-by: Andrew Borodin --- src/help.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/help.c b/src/help.c index f25cd42c5..24f5bba5a 100644 --- a/src/help.c +++ b/src/help.c @@ -272,7 +272,7 @@ move_backward (int i) static void move_to_top (void) { - while (((int) (currentpoint > fdata) > 0) && (*currentpoint != CHAR_NODE_END)) + while (((int) (currentpoint - fdata) > 0) && (*currentpoint != CHAR_NODE_END)) currentpoint--; while (*currentpoint != ']')