From ea1bcea36489ef2a230f30d79e8ccff741947ad5 Mon Sep 17 00:00:00 2001
From: Etienne Brateau <etienne.brateau@gmail.com>
Date: Wed, 16 Oct 2019 21:49:07 +0200
Subject: [PATCH] Fix a bug when on page 1 al calling the PAGE - function.

The minimal currpage is 1 and not 0 so update the check
---
 src/log.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/log.c b/src/log.c
index f8643c4..a020817 100644
--- a/src/log.c
+++ b/src/log.c
@@ -2227,7 +2227,7 @@ void doimmedfunction()
 		}
 		else if (!strcmp(gg.funcarg, "-"))
 		{
-			if (gg.curpage > 0)
+			if (gg.curpage > 1)
 				newpage((int)(gg.curpage - 1));
 		}
 		else if (strlen(gg.funcarg) == 1 && gg.funcarg[0] >= '1' &&
-- 
GitLab